Skip to content

Instantly share code, notes, and snippets.

@collabnix
Last active April 26, 2024 21:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collabnix/0eb01ebc7278db5725bf39b2f60beff1 to your computer and use it in GitHub Desktop.
Save collabnix/0eb01ebc7278db5725bf39b2f60beff1 to your computer and use it in GitHub Desktop.
Installing Docker Compose on NVIDIA Jetson Nano
NVIDIA Jetson Nano SD card image comes with Docker binaries installed. You an verify it:
root@pico1:/home/pico# docker version
Client:
Version: 19.03.6
API version: 1.40
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Fri Feb 28 23:47:53 2020
OS/Arch: linux/arm64
Experimental: false
Server:
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Wed Feb 19 01:06:16 2020
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.3.3-0ubuntu1~18.04.2
GitCommit:
nvidia:
Version: spec: 1.0.1-dev
GitCommit:
docker-init:
Version: 0.18.0
GitCommit:
Starting with JetPack 4.2, NVIDIA has introduced a container runtime with Docker integration. This custom runtime enables Docker containers to access the underlying GPUs available in the Jetson family.
pico@pico1:/tmp/docker-build$ sudo nvidia-docker version
NVIDIA Docker: 2.0.3
Client:
Version: 19.03.6
API version: 1.40
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Fri Feb 28 23:47:53 2020
OS/Arch: linux/arm64
Experimental: false
Server:
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: 369ce74a3c
Built: Wed Feb 19 01:06:16 2020
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.3.3-0ubuntu1~18.04.2
GitCommit:
runc:
Version: spec: 1.0.1-dev
GitCommit:
docker-init:
Version: 0.18.0
GitCommit:
But it doesn't come with Docker compose binaries. You might have to install it manually.
The usual process of installing Docker Compose is by using curl command as shown:
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
BUT ! it won't work for your Jetson Nano.
Follow the below guide to get Docker Compose installed on your Jetson Nano.
## Installing Docker Compose on NVIDIA Jetson Nano
Jetson Nano doesnt come with Docker Compose installed by default. You will need to install it first:
export DOCKER_COMPOSE_VERSION=1.27.4
sudo apt-get install libhdf5-dev
sudo apt-get install libssl-dev
sudo pip3 install docker-compose=="${DOCKER_COMPOSE_VERSION}"
apt install python3
apt install python3-pip
pip install docker-compose
docker-compose version
docker-compose version 1.26.2, build unknown
docker-py version: 4.3.1
CPython version: 3.6.9
OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
@Clark1216
Copy link

I have an issue while installing line 85, below is the error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ltox03ll/bcrypt/

Any thoughts about it?

@acollins99
Copy link

@Clark1216, Upgrading to the latest version of pip3 fixed the issue for me.

@Clark1216
Copy link

@Clark1216, Upgrading to the latest version of pip3 fixed the issue for me.

Thx a lot, it works

@ajeetraina
Copy link

Glad that it worked for you.

@sosnus
Copy link

sosnus commented Oct 13, 2023

I fix it using command: sudo pip3 install docker-compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment