How to install docker-compose in Linux1 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Docker-compose is an official tool by docker to manage and deploy multi-container applications. Docker-compose uses a YAML file where application services are defined.


If you have any confusion between docker-compose and docker stack check out this link.

Installation

Step 1: Download the docker-compose for your operating system.

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

Step 2: Change the ownership of the downloaded file.

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

This enabled executable permission

Step 3: Check the docker-compose version

docker-compose --version

Troubleshooting
if the docker-compose command fails, create a symbolic link to the bin folder.

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

© 2020, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply