Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. #31

Open
jurassicjordan opened this issue Feb 4, 2023 · 2 comments

Comments

@jurassicjordan
Copy link

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

did I set docker up wrong?

@realmemejeff
Copy link

No, docker just needs nvidia container toolkit to be installed correctly.
If you are on ubuntu or a similar distro using an nvidia card then run these commands:

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add - && curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

sudo apt-get update

sudo apt-get install -y nvidia-docker2

sudo systemctl restart docker

sudo docker run --shm-size 2GB -it --gpus all docurdt/heal

sudo apt-get update

sudo systemctl restart docker

It should then be able to recognize the card.

@GhostDog98
Copy link

For people on arch linux, I ran just had to run these commands:

yay nvidia-container-toolkit
sudo systemctl restart docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants