I’ve followed the steps outlined in GitHub - NVIDIA/nvidia-docker: Build and run Docker containers leveraging NVIDIA GPUs to setup the system and to start an nvidia-docker container.
Running deviceQuery from the cuda samples showed “Detected 1 CUDA Capable device(s)” and all the details of the GPU found.
“nvidi-smi” from host cli verifies card and driver version (418.67)
However, when running “docker run --gpus all nvidia/cuda nvidia-smi”, I get the following error:
“docker: Error response from daemon: could not select device driver “” with capabilities: [[gpu]].
ERRO error waiting for container: context canceled”
I’ve restarted docker as suggested in some troublehooting hints but that didn’t solve it. The other hint I found, was to make sure the graphics card driver was installed, which I “nvidia-smi” verified as far as I understand.
- Ubuntu 19.04 (I’ve seen it’s still beta but I just couldn’t update to 18.10)
- cuda 10.1
- Docker 19.03.1
Any help appreciated,
Thanks for your reply, bkakilli. I went through that description but it’s for Ubuntu 18.04. So when I got to…
“curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list”
…it errors out with…
Just did a search on that and found that forcing 18.04 version should work (Workstation Setup for Docker with the New NVIDIA Container Toolkit (nvidia-docker2 is deprecated)). Went through all steps described and it seems OK.
I am able to resolve the error by restarting the demon and the docker
sudo apt install -y nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker
Hello, so I had this issue but it was resolved after installing Nvidia toolkit, then I appended a new disk memory and started having this issue again? any idea on how to solve this please?
I was able to solve the issue I had following this link 20.04 - Docker only works with Nvidia drivers upon reinstall - Ask Ubuntu
The issue occurred cause I had docker ce and snap docker installed