Home

How to install docker-compose on Linux (Debian/Ubuntu/Pop!_OS 20.04)

In a previous companion post, we talked about how to install Docker in a Linux environment.

After finishing the standard installation, you may be surprised to find that the docker-compose utility is not installed out of the box.

Worry not my friend, this short article has you covered.

Docker-compose Installation

  1. Download the utility from their official GitHub repository
sudo curl \
   -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" \
   -o /usr/local/bin/docker-compose

Note: You can replace 1.24.1 with the latest release version found in the GitHub repo.

  1. Make the utility executable
sudo chmod +x /usr/local/bin/docker-compose
  1. Verify installation
docker-compose --version

Done

Easy, right? No? Then check out their full docs.