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!
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
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.