Installing Docker Compose 1.28.2 on NVIDIA Jetson Nano is not straightforward

ajeetraina

Ajeet Singh Raina

Posted on March 19, 2021

Installing Docker Compose 1.28.2 on NVIDIA Jetson Nano is not straightforward

Alt Text

To install Docker Compose on a Linux system is just a one-liner command but that's not true for IoT devices like Raspberry Pi and Jetson Nano.

While installing the latest Docker Compose 1.28.2, I went through a painful dependency hell. Finally, after dozens of tweaks and tricks, I managed to install the latest version of Compose.

Here's how I managed to get it installed:

Hardware

  • Jetson Nano
  • A 5V 4Ampere Charger
  • 64GB SD card

Software

Alt Text

Preparing Your Raspberry Pi Flashing Jetson SD Card Image

  • Unzip the SD card image
  • Insert SD card into your system.
  • Bring up Etcher tool and select the target SD card to which you want to flash the image.

Verifying if it is shipped with Docker Binaries

sudo docker version
Client: Docker Engine - Community
 Version:           20.10.3
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        48d30b5
 Built:             Fri Jan 29 14:33:34 2021
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.3
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       46229ca
  Built:            Fri Jan 29 14:31:49 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 nvidia:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
pico@pico1:~$ 
Enter fullscreen mode Exit fullscreen mode

Put the below content into a file and execute it

#!/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
sudo apt install rustc
sudo pip3 install docker-compose
Enter fullscreen mode Exit fullscreen mode
sudo docker-compose version
docker-compose version 1.28.2, build unknown
docker-py version: 4.4.2
CPython version: 3.6.9
OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
Enter fullscreen mode Exit fullscreen mode

How was your experience in setting up Compose on Jetson Nano board? Do leave your comments and feedback.

References:

πŸ’– πŸ’ͺ πŸ™… 🚩
ajeetraina
Ajeet Singh Raina

Posted on March 19, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related