Install Docker Compose on Linux

How do I install Docker Compose on Linux?

Mike Vincent
1 min readFeb 15, 2021

So, you came here to learn how to install Docker Compose on Linux.

For that, you’re going to need Docker. Make sure to install Docker before using Docker Compose.

And what if you’ve already done that?

Follow the instructions below to install Docker Compose on your Linux operation system.

Download Docker Compose

Like many great applications, Docker Compose is a single binary file. It’s written in Python, and it’s easy to download and use.

Use curl to download the Linux binary for Docker Compose. The uname utility and command substitution will help get the correct release.

curl -LO  "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)"

Change the filename

mv "docker-compose-$(uname -s)-$(uname -m)" docker-compose

Make the file executable

chmod +x docker-compose

Move the file to the local software bin

sudo mv docker-compose /usr/local/bin

Verify the installation

docker-compose --version

Read about other commands and options in the Docker Compose documentation.

“That’s all Folks!”

--

--

Mike Vincent
Mike Vincent

Written by Mike Vincent

Mike Vincent is an American software engineer and writer based in Los Angeles. He writes about tech leadership and holds degrees in Linguistics and Management.

No responses yet