离线下载,参考
bash
https://blog.csdn.net/weixin_42571882/article/details/134015815
离线安装NVIDIA Container Toolkit
bash
#下载下面的rpm文件,当前docker版本为20.10.9以及rpm全部打包上传,可以自行下载
libnvidia-container1-1.13.5-1.x86_64.rpm
libnvidia-container-tools-1.13.5-1.x86_64.rpm
nvidia-container-toolkit-1.13.5-1.x86_64.rpm
nvidia-container-toolkit-base-1.13.5-1.x86_64.rpm
nvidia-docker2-2.13.0-1.noarch.rpm
bash
#安装:(注意需要把docker服务关闭)
rpm -ivh libnvidia-container1-1.13.5-1.x86_64.rpm
rpm -ivh libnvidia-container-tools-1.13.5-1.x86_64.rpm
rpm -ivh nvidia-container-toolkit-1.13.5-1.x86_64.rpm
rpm -ivh nvidia-container-toolkit-base-1.13.5-1.x86_64.rpm
rpm -ivh nvidia-docker2-2.13.0-1.noarch.rpm (安装的时候报错了)
rpm -Uvh --force --nodeps nvidia-docker2-2.13.0-1.noarch.rpm
#重启docker
sudo systemctl restart docker