From 0bb8ec46356705edfe22d40c740da1c77fd1631b Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 4 Jan 2024 21:44:19 -0800 Subject: [PATCH] feat: run-ollama-docker.sh added --- run-ollama-docker.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 run-ollama-docker.sh diff --git a/run-ollama-docker.sh b/run-ollama-docker.sh new file mode 100644 index 00000000..5942fd3c --- /dev/null +++ b/run-ollama-docker.sh @@ -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 \ No newline at end of file