Unknown runtime specified nvidia

Hi,

I apologize in advance if the solution to my question is trivial. I was trying to run the docker image and mount the modulus examples using the following command
sudo docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864
–runtime nvidia -v ${PWD}/examples:/examples
-it --rm modulus:22.09 bash

I verified that nvidia-docker2 has been installed, but I received the following error
docker: Error response from daemon: Unknown runtime specified nvidia

Any help is appreciated!

sudo apt-get install nvidia-docker2
2 Likes

Hi @haowwang

Did you restart your machine / docker? Please check this potential solution on the Nvidia Docker Github.

I have the same issue. And I tried to restart the docker and it did not work. @haowwang Did you solve your problem?

After restarting my computer and changing “–runtime nvidia” to “–gpus all”, it works.

5 Likes