docker: Error response from daemon: could not select device driver “
参考:https://blog.csdn.net/m0_59492087/article/details/134324628报错:docker: Error response from daemon: could not select device driver “” with capabilities: [].
ERRO error waiting for container: context canceled
https://img-blog.csdnimg.cn/direct/ecc47b56d3d14b2d89e7a0d718197507.png
参考:https://blog.csdn.net/felton_cool/article/details/134327204
解决方法:
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | sudo tee /etc/yum.repos.d/nvidia-docker.repo
yum clean expire-cache
yum install -y nvidia-docker2
systemctl restart docker
https://img-blog.csdnimg.cn/direct/66f45473dbc2452a80897693feb1733a.png
前面安装后大概会导致之前的/etc/docker/daemon.json 文件内容会丢失失效;
因为前面更改过默认路径,所以/etc/docker/daemon.json 重新写上
https://img-blog.csdnimg.cn/direct/a34e5bbbdd0d4cd3a372238a029a7002.png
https://img-blog.csdnimg.cn/direct/55d68bfbceed46eda8db5d15cd29f41c.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]