Install Docker Compose on Linux CentOS Docker Host

In this blog post, I will show you how to install Docker Compose on Linux CentOS Docker host.

Docker Compose

To check the latest version of Docker Compose, visit the following link and note down the version number.

Install Docker Compose

To install docker-compose, I will use the following command line, which is using curl.

Note: The command is downloading version 1.25.5, downloading a different version change the number to the version is needed.

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

After I finished to download the file, I will run the following commands.

chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Check Version

To check which version I have my machine, I will run the command below.

docker-compose --version