Install Docker Compose on Linux CentOS

In this blog post, We will learn how to install Docker Compose on a Linux CentOS Docker host.

Docker Compose

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

https://github.com/docker/compose/releases

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

Check Version

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

docker-compose --version
Published
Categorized as Docker

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.