forked from open-webui/open-webui
Merge pull request #598 from ollama-webui/run-ollama-sh-fix
fix: run-ollama-docker.sh
This commit is contained in:
commit
b5c10ff1e5
1 changed files with 4 additions and 4 deletions
|
@ -10,10 +10,10 @@ docker pull ollama/ollama:latest
|
|||
|
||||
docker_args="-d -v ollama:/root/.ollama -p $host_port:$container_port --name ollama ollama/ollama"
|
||||
|
||||
if [ "$use_gpu" == "y" ]; then
|
||||
docker_args+=" --gpus=all"
|
||||
if [ "$use_gpu" = "y" ]; then
|
||||
docker_args="--gpus=all $docker_args"
|
||||
fi
|
||||
|
||||
docker run "$docker_args"
|
||||
docker run $docker_args
|
||||
|
||||
docker image prune -f
|
||||
docker image prune -f
|
Loading…
Reference in a new issue