This is probably one of the quickest and easiest ways to get Docker and Docker Compose running on the Jetson Nano
(Tested with Jetson Nano 4GB Development Kit)
After searching the Inter-Webs for hours and having several things not work for me, I decided something needed to be done about it.
How to install Docker and Docker Compose on the Jetson Nano, the right way!
I have already created a very simple shell file which installs the prerequisites needed to run Docker as well as Docker-Compose itself. Simply download it.
wget -O install-dc.sh https://gist.githubusercontent.com/CT83/6dbe0d9df3fd3ba4d57fd3a5347e5105/raw/4975eb302be84cf1755378523343004451c7260d/install-dc.sh
The script might need you to prompt "yes" by pressing "Y" a couple of times, do play along with it.
sudo sh ./install-dc.sh
docker run hello-world
Important Notice about Docker on the Jetson Nano
Jetson Nanos use the ARM architecture, and as a result, won't be compatible with all containers out of the box. Images will need to be built from an ARM base image. But, most of these images can easily be found on Docker Hub
Some things you might find interesting.
I would encourage you to take a look at the install-dc.sh script.
#!/bin/bash sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install curl python3-pip libffi-dev python-openssl libssl-dev zlib1g-dev gcc g++ make -y curl -sSL https://get.docker.com/ | sh sudo pip3 install docker-compose sudo docker-compose --version