本文主要是介绍记录 | docker报错could not select device driver ““ with capabilities: [[gpu]].,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
ubuntu18.04 上启动 docker start
报错:
could not select device driver “” with capabilities: [[gpu]].
docker: Error response from daemon: could not select device driver “” with capabilities: [[gpu]].
ERRO[0005] error waiting for container: context canceled
解决:
安装 nvidia-container-runtime
sudo curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | \sudo apt-key add -distribution=$(. /etc/os-release;echo $ID$VERSION_ID)sudo curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.list | \sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.listsudo apt-get update
sudo apt-get install nvidia-container-runtime
然后重启 docker:
systemctl restart docker
这篇关于记录 | docker报错could not select device driver ““ with capabilities: [[gpu]].的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!