docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]
loong_XL 2024-06-22 17:07:10 阅读 93
参考:https://blog.csdn.net/m0_59492087/article/details/134324628
报错:docker: Error response from daemon: could not select device driver “” with capabilities: [[gpu]].
ERRO[0058] error waiting for container: context canceled
参考: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.repoyum clean expire-cache yum install -y nvidia-docker2systemctl restart docker
前面安装后可能会导致之前的/etc/docker/daemon.json 文件内容会丢失失效;
因为前面更改过默认路径,所以/etc/docker/daemon.json 重新写上
上一篇: [C++] 详细教程 - opencv4.8.0安装和验证测试 (Windows + Linux)
下一篇: 【多版本cuda自由切换】在ubuntu上安装多个版本的CUDA,并且可以随时切换cuda-11.3//cuda-11.8//cuda-11.6//cuda-11.2
本文标签
docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]
声明
本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。