Jacar mascot — reading along A laptop whose eyes follow your cursor while you read.
Cómo Instalar

How to Install Docker Compose on Ubuntu 20.04

How to Install Docker Compose on Ubuntu 20.04

Actualizado: 2026-05-03

Docker Compose[1] is the official tool for defining and running multi-container Docker applications. Instead of starting each container separately, Docker Compose reads a docker-compose.yml file that describes all the application’s services, networks, and volumes, and starts them all with a single command. This article explains how to install it on Ubuntu 20.04 from the official repository.

Key takeaways

  • Docker Compose complements Docker: it manages applications made up of several coordinated containers.
  • Installation is done by downloading the binary directly from Docker’s GitHub repository.
  • Before installing, check the releases page[2] to install the most recent version.
  • Docker Compose v2 is integrated as a Docker CLI plugin (docker compose) in modern installations; the standalone version (docker-compose) remains valid for Ubuntu 20.04.

Prerequisites

To complete this tutorial you need:

Install Docker Compose

We use the official Docker Compose GitHub repository[4] to install the latest available version.

Important: before running the commands, check the Docker Compose releases page[2] and update the VERSION value to the most recent release.

bash
VERSION=1.27.0
sudo curl -L "https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

The first command downloads the binary matching the system architecture ($(uname -s) returns Linux, $(uname -m) returns x86_64 on 64-bit servers). The second grants execute permissions.

Docker logo, the platform that includes Docker Compose for container orchestration

Verify the installation

Check that Docker Compose was installed correctly and is available on the system:

bash
docker-compose --version

The output should show something like docker-compose version 1.27.0, build .... If the command is not found, verify that /usr/local/bin/ is in the system PATH.

Basic usage

With Docker Compose installed, the typical workflow is:

  1. Create a docker-compose.yml file defining the application’s services.
  2. Run docker-compose up -d to start all containers in detached (background) mode.
  3. Use docker-compose ps to check service status.
  4. Stop and remove containers with docker-compose down.

Docker Compose is the starting point for deploying complete stacks, such as Traefik as a reverse proxy with Docker Compose or more complex applications with coordinated databases, caches, and web services. If you’re looking for observability tooling over your containers, see the post on Pixie for Kubernetes observability.

Conclusion

Docker Compose radically simplifies multi-container application management: instead of launching and configuring each service separately, a single YAML file describes the entire architecture. With the binary installed and the right permissions, the environment is ready to define complete stacks in minutes.

Was this useful?
[Total: 11 · Average: 4.2]
  1. Docker Compose
  2. releases page
  3. Ubuntu 20.04
  4. official Docker Compose GitHub repository

Written by

CEO - Jacar Systems

Passionate about technology, cloud infrastructure and artificial intelligence. Writes about DevOps, AI, platforms and software from Madrid.