Install Docker-Compose in Linux Machine

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

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Apply executable permissions to the binary:

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

You can also create a symbolic link to /usr/bin or any other directory in your path.

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Check the docker-compose version to verify that docker-compose installed or not.

gaurav@learning-ocean:~$ docker-compose --version
docker-compose version 1.29.0, build 07737305