欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-05-04 22:22:28
...

笔者是使用目前最新的19.03版docker安装,按照他的使用命令的前两个
Github项目地址
Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

#### Test nvidia-smi with the latest official CUDA image
docker run --gpus all nvidia/cuda:10.0-base nvidia-smi

# Start a GPU enabled container on two GPUs
docker run --gpus 2 nvidia/cuda:10.0-base nvidia-smi
# Starting a GPU enabled container on specific GPUs
docker run --gpus '"device=1,2"' nvidia/cuda:10.0-base nvidia-smi
docker run --gpus '"device=UUID-ABCDEF,1"' nvidia/cuda:10.0-base nvidia-smi

这样用不了,但我用

# Specifying a capability (graphics, compute, ...) for my container
# Note this is rarely if ever used this way
docker run --gpus all,capabilities=utility nvidia/cuda:10.0-base nvidia-smi

成功启动镜像

相关标签: 技术笔记与杂谈