docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama:0.1.20
vim /opt/ollama/compose.yml
version: "3.9"
services:
ollama:
image: ollama/ollama:0.1.20
container_name: ollama
hostname: ollama
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ollama:/root/.ollama
ports:
- 11434:11434