ubuntu系统docker20.4版本安装nvidia-container-runtime3.11.0-1版本(离线安装nvidia-docker)

 

直接在docker中使用GPU设备,出现报错如下

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

解决:安装英伟达容器运行时

1.下载4个nvidia--container-runtime3.11.0-1相关安装包

下载链接:

http://mirror.cs.uchicago.edu/nvidia-docker/libnvidia-container/stable/ubuntu16.04/amd64/

 

 2.下载4个软件包依次安装,顺序不能错

sudo dpkg -i nvidia-container-toolkit-base_1.11.0-1_amd64.deb
sudo dpkg -i libnvidia-container1_1.11.0-1_amd64.deb
sudo dpkg -i libnvidia-container-tools_1.11.0-1_amd64.deb
sudo dpkg -i nvidia-container-toolkit_1.11.0-1_amd64.deb

3.重启docker

sudo systemctl restart docker

posted @ 2023-03-08 09:54  jokerMM  阅读(1020)  评论(0编辑  收藏  举报