How do I install docker-compose on linux?

0 votes
I need to run multiple containers as a single service as a part of my application for which i need to use docker-compose.Could you please specify the installation procedure for docker-compose?
Jul 2 in Docker by Namik
• 800 points
158 views

1 answer to this question.

0 votes

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Prerequisites:

Docker Compose relies on Docker Engine for any meaningful work, so make sure you have Docker Engine installed either locally or remote, depending on your setup.

Install Compose on Linux systems:

On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub. Follow the instructions from the link, which involve running the curl command in your terminal to download the binaries. These step-by-step instructions are also included below.

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

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

To install a different version of Compose, substitute 1.24.0 with the version of Compose you want to use.

Apply executable permissions to the binary:

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

You could test the installation :

$ docker-compose --version

For other alternative install options you could refer to the link below:

https://docs.docker.com/compose/install/#install-as-a-container

answered Jul 2 by Sirajul
• 5,960 points

Related Questions In Docker

0 votes
1 answer

How do I install Docker on Mac

Hey @Ali, follow this guide, hope it ...READ MORE

answered Jan 2 in Docker by Vishnu
56 views
0 votes
1 answer

How do I install docker on Ubuntu?

Hey @Vijay, Follow these steps: Add the GPG ...READ MORE

answered Feb 21 in Docker by Sridhar
56 views
0 votes
1 answer

How do I install docker on windows?

Hey @Dipti, Follow these steps to install ...READ MORE

answered Feb 25 in Docker by Kalgi
43 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,160 points
99 views
0 votes
1 answer

What is a docker file? How do I create a docker image with dockerfile?

 A Dockerfile is a script/text configuration file that contains ...READ MORE

answered Jun 7 in Docker by Sirajul
• 5,960 points
249 views
0 votes
1 answer

how do I create an image from a tar archive in docker?

You can use docker load command inorder to get ...READ MORE

answered Jul 2 in Docker by Sirajul
• 5,960 points
16 views