i'm trying to install Docker-compose on my Raspberry Pi 3+ which installed Raspbian buster.
I followed instruction on docker.com. After I entered command : sudo curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
.
It show a table for downloading
It seems nothing downloaded, just have a file docker-compose
saved in /usr/local/bin/docker-compose
. When I opened it, it empty. Then I enter command docker-compose -v
, it displayed error /usr/local/bin/docker-compose : line 1: Not: command not found
.
Anyone have solution?
This is because on a raspberry pi the url part of the command results in
https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-armv7l
Looking at the latest stable release at https://github.com/docker/compose/releases/tag/1.24.1 you can see there is no download for the armv7l
architecture so the file is empty because there is nothing to download.
Will update answer once I figured out how to install docker-compose
on Raspian.
Edit:
Via apt-get
. Note: Currently (Nov. 8 2019) this installs version 1.21 which is not the latest available.
sudo apt-get install docker-compose
Via pip3
. (Installs latest)
sudo apt-get install python3-pip
sudo pip3 install docker-compose
And then restart your system with
sudo shutdown -r