feat: run-ollama-docker.sh added

This commit is contained in:
Timothy J. Baek 2024-01-04 21:44:19 -08:00
parent 1c6b59ee46
commit 0bb8ec4635

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