error :
when run
nvidia-docker run --rm nvidia/cuda nvidia-smi
the centos reply :
NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.
Error cause:
SELinux Alert stop the read access on the libnvidia-ml.so.1 of nvidia-docker
Trouble Shooting
Accord to the notification of the
You can generate a local policy module to allow this access.
Allow this access for now by executing:
# ausearch -c 'nvidia-smi' --raw | audit2allow -M my-nvidiasmi
# semodule -i my-nvidiasmi.pp