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

Hi @haowwang

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