Note : I have installed nvidia-container with the jetpack only.
I am trying to run sample container but getting error. details are as below
$sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
Error:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Even when i try to restart the docker i will get below error.
$ sudo systemctl restart docker
Error:
Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xeu docker.service” for details.
I followed below links to fix the issue but none of them worked with me.
Note that until this is fixed, if you run an apt upgrade and you’re not paying attention, you’ll update these and break it again. Probably worth using sudo apt-mark hold to mark these against update for the time being.
The root cause is the latest docker requires some kernel configs that are not enabled in r36.4.3 BSP by default.
Please find the below comment for more info: