Docker isn't working after apt upgrade

I followed the instructions from:
https://github.com/dusty-nv/jetson-containers/issues/108
https://forums.developer.nvidia.com/t/docker-containers-wont-run-after-recent-apt-get-upgrade/194369/11

I combined the instructions, with a revision to the /etc/apt/preferences section and here they are:

wget https://launchpad.net/ubuntu/+source/docker.io/20.10.2-0ubuntu1~18.04.2/+build/21335731/+files/docker.io_20.10.2-0ubuntu1~18.04.2_arm64.deb
sudo dpkg -i docker.io_20.10.2-0ubuntu1~18.04.2_arm64.deb
rm docker.io_20.10.2-0ubuntu1~18.04.2_arm64.deb
sudo apt install containerd=1.5.2-0ubuntu1~18.04.3

To keep the apps from updating:

sudo nano /etc/apt/preferences

Package: docker.io
Pin: version 20.10.2*
Pin-Priority: 1001

Package: containerd
Pin: version 1.5.2*
Pin-Priority: 1001

After all of that you can sudo apt update and sudo apt upgrade and run the containers. Works on both the Xavier NX and the Nano.

13 Likes