could not select device driver "" with capabilities: [[gpu]].

I am able to resolve the error by restarting the demon and the docker
sudo apt install -y nvidia-docker2
sudo systemctl daemon-reload
sudo systemctl restart docker

17 Likes