Skip to content

Instantly share code, notes, and snippets.

@imneonizer
Last active February 25, 2024 16:19
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 imneonizer/38b5a4c428d5548e94bfb79c3e9437c3 to your computer and use it in GitHub Desktop.
Save imneonizer/38b5a4c428d5548e94bfb79c3e9437c3 to your computer and use it in GitHub Desktop.

Install Docker Compose via Python PIP

These are all commands you need to install Docker Compose on a freshly installed NVIDIA Jetson.

# step 1, install Python PIP
$ sudo apt-get update -y
$ sudo apt-get install python3-pip

# step 2, install Docker Compose build dependencies for Ubuntu 18.04 on aarch64
$ sudo apt-get install -y libffi-dev libssl-dev python-openssl

# step 3, install latest Docker Compose via pip
$ sudo -H pip3 install docker-compose==1.24.0

Reference

https://blog.hypriot.com/post/nvidia-jetson-nano-install-docker-compose/

@imneonizer
Copy link
Author

Run docker without sudo

sudo usermod -aG docker $USER

@JNaranjo-Alcazar
Copy link

After following this tutorial I get the followting error:

sudo docker-compose --version
Illegal instruction

Any ideas?

Thanks in advance

@imneonizer
Copy link
Author

Can you paste the entire error ? or can you paste the installation log

You can try to uninstall and reinstall

sudo -H pip3 uninstall docker-compose
sudo -H pip3 install docker-compose

@JNaranjo-Alcazar
Copy link

The installation finishes with no error. It is just when launching the command. Am I calling it correctly?

@imneonizer
Copy link
Author

Make sure you are using pip3 and not pip or in other words python3 for installing docker-compose.
A quick google search reveals that this issue might be because of the incorrect docker-compose binary.

Try using some other version of docker-compose.

@JNaranjo-Alcazar
Copy link

Solved. It was not a problem with the installtion. The problem was related to numpy version. Now works. Thanks for the help

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