The message
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
Affects: Docker Desktop, WSL 2 (Windows Subsystem for Linux), Open WebUI
Why is this happening?
For GPU access, Docker needs an NVIDIA runtime. On Windows, Docker Desktop provides it only with the WSL-2 backend and an up-to-date NVIDIA driver. On Linux (or if you installed Docker directly in WSL without Docker Desktop), the NVIDIA Container Toolkit must be installed and registered with Docker. If that is missing, Docker does not know a driver for the "gpu" capability.
How to fix it
- Windows with Docker Desktop: Check in the Docker Desktop settings that the WSL-2 backend is turned on.
- Update the NVIDIA driver on Windows and then WSL with
wsl --update. Restart Docker Desktop. - Test GPU access:
docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark. - Linux or Docker directly in WSL: Check with
nvidia-smithat the card is detected. Then set up the NVIDIA package repository according to NVIDIA's guide and installsudo apt-get install -y nvidia-container-toolkit. - Register the NVIDIA runtime with Docker:
sudo nvidia-ctk runtime configure --runtime=dockerand restart Docker:sudo systemctl restart docker. - Then start your container again with
--gpus all(for example, Open WebUI with the imageghcr.io/open-webui/open-webui:cuda).
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI… - Chat with your own documents (AnythingLLM)
Set up AnythingLLM Desktop on Windows, load PDFs into a workspace, and ask questions locally — with sources and privacy. - VRAM explained: why it decides everything
How much VRAM does local AI need? Rule of thumb, quantization (Q4, Q8, fp8), context, image and video models, offloading, and which card si…
Terms for this
Similar errors
- Docker Desktop: WSL needs updating / WSL 2 installation is incomplete
- Ports are not available: … bind: An attempt was made to access a socket in a way forbidden by its access permissions (Port is reserved by Windows)
- WSL 2: 0x80370102 – Virtualization not enabled
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- Open WebUI or AnythingLLM can't find Ollama
Sources
- https://docs.docker.com/desktop/features/gpu/
- https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
- https://forums.developer.nvidia.com/t/could-not-select-device-driver-with-capabilities-gpu/259324
- https://github.com/open-webui/open-webui/blob/main/README.md
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.