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, 2019 in Docker by Namik
• 1,230 points
9,978 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, 2019 by Sirajul
• 59,230 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 3, 2019 in Docker by Vishnu
803 views
0 votes
1 answer

How do I install docker on Ubuntu?

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

answered Feb 22, 2019 in Docker by Sridhar
1,313 views
0 votes
1 answer

How do I install docker on windows?

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

answered Feb 25, 2019 in Docker by Kalgi
1,010 views
0 votes
0 answers

How do I actually install Docker on Windows 8.1? (Docker Toolbox for Windows 8.1 was deprecated recently)

So I have been advised something like ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
792 views
+2 votes
1 answer
+2 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
• 58,020 points
2,713 views
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14, 2019 in Docker by Sirajul
• 59,230 points
12,673 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP