Running Containers#
The following is an example of running the CUDA container from the NGC registry.
sudo docker run --gpus=all --rm nvcr.io/nvidia/cuda:11.0-base nvidia-smi
Note: While users are encouraged to launch GPU containers via “docker run ––gpus=all”, users who still prefer “nvidia-docker” may see an AVC denial from SELinux:
/bin/nvidia-docker: line 34: /bin/docker: Permission denied
The workaround for this issue is to install the nvidia-container-selinux package:
$ sudo dnf install -y nvidia-container-selinux