Free | No tracking | Every fact with a source|German and English

Error / Graphics card and drivers

could not select device driver "" with capabilities: [[gpu]] (Docker cannot pass the graphics card through to the container)

You start a container with --gpus all, but Docker has no way to pass the NVIDIA graphics card through to the container.

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

  1. Windows with Docker Desktop: Check in the Docker Desktop settings that the WSL-2 backend is turned on.
  2. Update the NVIDIA driver on Windows and then WSL with wsl --update. Restart Docker Desktop.
  3. Test GPU access: docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark.
  4. Linux or Docker directly in WSL: Check with nvidia-smi that the card is detected. Then set up the NVIDIA package repository according to NVIDIA's guide and install sudo apt-get install -y nvidia-container-toolkit.
  5. Register the NVIDIA runtime with Docker: sudo nvidia-ctk runtime configure --runtime=docker and restart Docker: sudo systemctl restart docker.
  6. Then start your container again with --gpus all (for example, Open WebUI with the image ghcr.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:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.