mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #11188] Docker Script to Use GPUs, Ollama, and Enable Cuda #16136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mattvisa on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11188
Bug Report
Utilize cuda along with install script that bundles Ollama.
Important Notes
Installation Method
I utilized this method to install:
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart unless-stopped ghcr.io/open-webui/open-webui:ollama
I am using an RTX 4080 graphics card on Linux Mint and have installed the Nvidia toolkit, etc.
I looked in portainer and see that enable Docker Cuda is not set to TRUE. I set it to true, but am still using this image: ghcr.io/open-webui/open-webui:ollama. I don't see that when I run a model that my GPU usage jumps, but I do see my CPU usage go up.
I then switched the above image to ghcr.io/open-webui/open-webui:cuda and am not able to download any ollama models. I understand what I am doing, but I want to know if there is a way to preset using cuda AND also the packaged ollama install via docker.
I tried to install Ollama via a separate docker instance and reinstalling ghcr.io/open-webui/open-webui:cuda and pointing it to the port that ollama takes but had no luck that way. This might not be a bug and instead a feature request.
Environment
Open WebUI Version: ghcr.io/open-webui/open-webui:ollama as of 8:58pm this evening.
Operating System: Linux Mint 22.1
Confirmation:
Expected Behavior:
I would be able to run docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart unless-stopped ghcr.io/open-webui/open-webui:CUDA_AND_OLLAMA
Actual Behavior:
When I installed it via
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart unless-stopped ghcr.io/open-webui/open-webui:ollama
I could not seemingly utilize cuda as well.
Description
Bug Summary:
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart unless-stopped ghcr.io/open-webui/open-webui:ollama
I just want to also be able to enable cuda with this script above as well.
@mattvisa commented on GitHub (Mar 5, 2025):
Screenshot from portainer attached to make this more simple what I am seeing/requesting: