Install Docker-compose on Linux systems

On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub. Follow the instructions from the link, which involve running the curl command in your terminal to download the binaries. These step-by-step instructions are also included below.

1. Run this command to download the current stable release of Docker Compose:

1
sudo curl -SL https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

If github access is too slow, you can use daocloud to download:

1
sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

To install a different version of Compose, substitute 1.29.2 with the version of Compose you want to use.

2. Apply executable permissions to the binary:

1
sudo chmod +x /usr/local/bin/docker-compose

3. Test installation results

1
docker-compose --version

Install Docker-compose on Linux systems
https://www.hardyhu.cn/2022/01/30/Install-Docker-compose-on-Linux-systems/
Author
John Doe
Posted on
January 30, 2022
Licensed under