DEV Community

Cover image for Installing Docker and Docker-Compose on the Jetson Nano 4GB/2GB in 2 simple steps!
Rohan Sawant
Rohan Sawant

Posted on

Installing Docker and Docker-Compose on the Jetson Nano 4GB/2GB in 2 simple steps!

You know what Docker is. You know what a Jetson Nano is. Let me make sure they hit it off together. 😎🤝🏽

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.

Steps

How to install Docker and Docker Compose on the Jetson Nano, the right way!

1. Download install script

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
Enter fullscreen mode Exit fullscreen mode

2. Run the script

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
Enter fullscreen mode Exit fullscreen mode

3. Test Docker installation

docker run hello-world
Enter fullscreen mode Exit fullscreen mode

Boom! 🔥 It's done!

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

Appendix

Some things you might find interesting.

Shell Script

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)