Merge pull request #598 from ollama-webui/run-ollama-sh-fix

fix: run-ollama-docker.sh
This commit is contained in:
Timothy Jaeryang Baek 2024-01-29 15:39:18 -08:00 committed by GitHub
commit b5c10ff1e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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