In this blog post, We will learn how to install Docker Compose on a Linux CentOS Docker host.
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 "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(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
To check which version I have my machine, I will run the command below.