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

6 1

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

Runner H image

An AI Agent That Handles Life, Not Just Work

From ordering flowers to booking your dinner — let Runner H turn your ideas into actions. No prompts, no hassle. Just outcomes.

Try for Free

Top comments (0)

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!