mirror of
https://github.com/tiyn/wiki.git
synced 2025-10-30 18:01:15 +01:00
1.1 KiB
1.1 KiB
ollama - ollama
This is a Docker container for an ollama server. The official container and documentation was made by ollama.
Set-up
Create the file rebuild.sh.
Change the settings according to your needs and run ./rebuild.sh afterwards.
Ports
Set the following ports in the ports: section.
| Container Port | Recommended outside port | Protocol | Description |
|---|---|---|---|
11434 |
11434 |
TCP | Communications port |
Volumes
Set the following volumes with the -v tag.
| Outside mount/volume name | Container mount | Description |
|---|---|---|
ollama |
/root/.ollama |
Ollama data |
rebuild.sh
#!/bin/sh
docker stop ollama
docker rm ollama
docker pull ollama/ollama
docker run --name ollama \
--restart unless-stopped \
-p 11434:11434 \
-v ollama:/root/.ollama \
-d ollama/ollama