Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (2.3k points)
edited by

how can I install docker compose in ubuntu?

1 Answer

0 votes
by (6.9k points)

If you are working on Ubuntu follow these steps:

Step 1:

First update your system.

$ sudo apt-get update 

Step 2:

Then install docker if you already haven't.

$ sudo apt-get install -y

Step 3:

then download docker compose

$ sudo curl -L "$(uname  -s)-$(uname -m)" -o/usr/local/bin/docker-compose

Step 4:

given docker the appropriate permissions.

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

Step 5;

Now check if it is installed or not using this command:

$ docker-compose --version

Hope that helped :) 

Looking for more in depth knowledge about docker compose, try docker training course, you will be taught a lot different concepts pertaining to docker compose.

Browse Categories