I have a Jetson AGX Orin Developer kit running the default ubuntu 20.04 distribution.
I got docker installed via Nvidia Jetpack (5.0.2), but
it insists on installing the old docker.io instead on the newer docker-ce.
All resources I can find online seems to indicate that it infact should use the docker-ce package, but it doesn’t on my setup. It doesn’t even show up when I list the apt packages available for installation. My /etc/apt/sources.list.d/nvidia-l4t-apt-source.list has these two entries:
deb https://repo.download.nvidia.com/jetson/common r35.1 main
deb https://repo.download.nvidia.com/jetson/t234 r35.1 main
I managed to fix it myself by following these steps:
uninstall the nvidia-jetpack package (it might be enough to uninstall nvidia-docker2, but I did not try that)
Add the official docker repository, but make sure to target it to ubuntu 18.04 “bionic” instead of 20.04 “focal” in order to stay compatible with the NVIDIA Container Toolkit repositories that are just symlinked to 18.04 (according to Installation Guide — NVIDIA Cloud Native Technologies documentation)