Merge pull request #388 from ollama-webui/run-script

feat: run-ollama-docker.sh added
This commit is contained in:
Timothy Jaeryang Baek 2024-01-05 00:44:35 -05:00 committed by GitHub
commit 76139fc8df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
run-ollama-docker.sh Normal file
View file

@ -0,0 +1,7 @@
docker rm -f ollama || true
docker pull ollama/ollama
# CPU Only
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
# GPU Support
# docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
docker image prune -f