Please try to sudo apt install -y nvidia-docker2 sudo systemctl daemon-reload sudo systemctl restart docker
Refer to https://github.com/NVIDIA/nvidia-docker/issues/838