could not select device driver Docker Origin: Platform & cloud Last updated 14 Oct 2026

could not select device driver "" with capabilities: [[gpu]]

docker run --gpus was used, but the NVIDIA Container Toolkit isn’t installed/configured, so Docker can’t expose the GPU.

Exact message you may see could not select device driverwith capabilities: [[gpu]]nvidia-container-cli: initialization error
Seen on: Docker

Meaning

GPU access needs the NVIDIA driver on the host plus nvidia-container-toolkit registered as a Docker runtime. After installing, Docker must be restarted.

Common causes

  • NVIDIA Container Toolkit not installed
  • Docker not restarted after installing
  • Host NVIDIA driver missing or broken
  • Rootless Docker or Docker Desktop without GPU support

⚡ Quick fix

  1. Install nvidia-container-toolkit and configure the runtime
  2. Restart Docker
  3. Check nvidia-smi on the host

Detailed fix by platform

Linux

  1. bash
    sudo apt-get install -y nvidia-container-toolkit
    sudo nvidia-ctk runtime configure --runtime=docker
    sudo systemctl restart docker
    docker run --rm --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi

How to diagnose

  1. Host — nvidia-smi works?
  2. Runtime — docker info | grep -i runtime

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

bind source path does not exist — invalid mount config for type "bind": bind source path does not exist (Docker)bind source path does…client version is too new — Error response from daemon: client version 1.45 is too new. Maximum supported API version is 1.41 (Docker)client version is too…daemon — Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (Docker)daemonlookup registry-1.docker.io: no such host — dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build (Docker)lookup registry-1.doc…Sending build context — Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever (Docker)Sending build contextthe attribute version is obsolete — WARN: the attribute `version` is obsolete, it will be ignored (Docker)the attribute version…You cannot remove a running container — Error response from daemon: You cannot remove a running container. Stop the container before attempting removal or force remove (Docker)You cannot remove a r…could not…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.