Installing Docker Compose 1.28.2 on NVIDIA Jetson Nano is not straightforward
Ajeet Singh Raina
Posted on March 19, 2021
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
- Jetson SD card image from https://developer.nvidia.com/embedded/downloads
- Etcher software installed on your system
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:~$
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
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
How was your experience in setting up Compose on Jetson Nano board? Do leave your comments and feedback.
References:
π πͺ π
π©
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.