Docker compose missing from docker-20-04 droplet

Why docker-20-04 droplet are not installing docker-compose ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
February 8, 2023

Hello @carlosclavijoschmiedl

To make sure you obtain the most updated stable version of Docker Compose, you’ll download this software from its official Github repository.

First, confirm the latest version available on their releases page. At the time of this writing, the most current stable version is 2.3.3.

Use the following command to download:

mkdir -p ~/.docker/cli-plugins/
curl -SL -o ~/.docker/cli-plugins/docker-compose

Next, set the correct permissions so that the docker compose command is executable:

chmod +x ~/.docker/cli-plugins/docker-compose

To verify that the installation was successful, you can run:

docker compose version

You’ll see output similar to this:

OutputDocker Compose version v2.3.3

Docker Compose is now successfully installed on your system. In the next section, you’ll see how to set up a docker-compose.yml file and get a containerized environment up and running with this tool.

You can check our article here


Bobby Iliev
Site Moderator
Site Moderator badge
February 3, 2023

Hi there,

I’ve just checked and can confirm that docker compose is available:

$ docker compose
# Out put:
Usage:  docker compose [OPTIONS] COMMAND
Docker Compose

Note that docker-compose is legacy now and you should use docker compose instead.

I case that you need the legacy one, you can install docker-compose with:

apt update -y
apt install docker-compose

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up