On Linux, you can download the Docker Compose binary from the Github Repository.
1.Run below command to download the current stable release of Docker Compose:
user@computer$ sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. Apply executable permissions to the binary:
user@computer$ sudo chmod +x /usr/local/bin/docker-compose
3. Link the downloaded file to binary system.
user@computer$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
4. Test the installation Run command:
user@computer$ docker-compose --version
and output will like below.
docker-compose version 1.26.2, build 1110ad01
We have installed docker-compose successfully.