Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install Docker Compose on CentOS 7
#1

    How to Install Docker Compose on CentOS 7
   

How to Install Docker Compose on CentOS 7


   

Docker Compose is a utility that allows us to display images in Docker. It was created because many programs require other services to run. For example, with WordPress or another CMS, we require, first of all, a functional web server, and the image of a database manager and finally the image of the application.

   

We would have to deploy them one by one and configure them. With Docker Composer we can define everything in a file, with all the images dependent on the main one and load them normally.

   

To install Docker Compose on CentOS 7, we need to run this command:

   
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
   

In case we do not have curl installed, we can do it using the following command:

   
yum install curl
   

Then we have to assign execution permissions to the Docker Compose binary:

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

And now, to ensure there are no problems when using the utility in the terminal, we will have to make a symbolic link to the system:

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

Finally, check the installed version:

   
docker-compose --version
   

And we’re ready to use both Docker, and Docker Compose.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)