Docker 使用GPU 错误之Error could not select device driver ““ with capabilities: [[gpu]]
错误之Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]
关于配置docker19使用gpu,其实只用装官方提供的toolkit即可,把github上的搬下来:
Ubuntu 18.04/20.04:
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
创建并启动tritonserver
docker run --gpus all --rm --net=host -v ${PWD}/model_repository:/models nvcr.io/nvidia/tritonserver:22.07-py3 tritonserver --model-repository=/models
标签:could,sudo,driver,apt,nvidia,gpu,docker,select
From: https://www.cnblogs.com/michaelcjl/p/16822636.html