Spaces:
Paused
Paused
Commit
·
aa44b37
1
Parent(s):
6d1a8cc
Update run-ollama-docker.sh
Browse files- run-ollama-docker.sh +7 -5
run-ollama-docker.sh
CHANGED
@@ -8,15 +8,17 @@ read -r -p "Do you want ollama in Docker with GPU support? (y/n): " use_gpu
|
|
8 |
docker rm -f ollama || true
|
9 |
docker pull ollama/ollama:latest
|
10 |
|
11 |
-
|
12 |
# docker_args="-d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main"
|
13 |
-
docker_args="-d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama"
|
14 |
|
15 |
|
16 |
|
17 |
-
if [ "$use_gpu" = "y" ]; then
|
18 |
-
|
19 |
-
fi
|
|
|
|
|
20 |
|
21 |
docker run $docker_args
|
22 |
|
|
|
8 |
docker rm -f ollama || true
|
9 |
docker pull ollama/ollama:latest
|
10 |
|
11 |
+
docker_args="-d -v ollama:/root/.ollama -p $host_port:$container_port --name ollama ollama/ollama"
|
12 |
# docker_args="-d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main"
|
13 |
+
# docker_args="-d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama"
|
14 |
|
15 |
|
16 |
|
17 |
+
# if [ "$use_gpu" = "y" ]; then
|
18 |
+
# docker_args="--gpus=all $docker_args"
|
19 |
+
# fi
|
20 |
+
|
21 |
+
docker_args="--gpus=all $docker_args"
|
22 |
|
23 |
docker run $docker_args
|
24 |
|