Report this

What is the reason for this report?

Docker compose missing from docker-20-04 droplet

Posted on February 3, 2023

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



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!

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.

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!

Best,

Bobby

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 https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-linux-x86_64 -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

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.