The following error occurred when running docker:
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
1.First install Install
nvidia-container-toolkit via the following command
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
systemctl restart dockerd to restart the docker service.