CentOS 7上安装nvidia-docker问题纪要
问题背景
- 参考https://github.com/NVIDIA/nvidia-docker/wiki在centos 7上安装后,执行nvidia-docker run –rm nvidia/cuda nvidia-smi报错
解决办法
sudo systemctl edit nvidia-docker
- 写入如下三行
[Service] ExecStart= ExecStart=/usr/bin/nvidia-docker-plugin -s $SOCK_DIR -d /url/local/nvidia-driver
- 写入如下三行
sudo mkdir /url
sudo chown -R nvidia-docker:nvidia-docker /url
sudo systemctl restart nvidia-docker