赞
踩
参考: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.repo
yum clean expire-cache
yum install -y nvidia-docker2
systemctl restart docker
前面安装后可能会导致之前的/etc/docker/daemon.json 文件内容会丢失失效;
因为前面更改过默认路径,所以/etc/docker/daemon.json 重新写上
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。