VOOZH about

URL: https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04

⇱ How To Install Docker Compose on Ubuntu 18.04 | DigitalOcean


How To Install Docker Compose on Ubuntu 18.04

Updated on April 29, 2022
Not using Ubuntu 18.04?
Choose a different version or distribution.
Ubuntu 18.04
πŸ‘ How To Install Docker Compose on Ubuntu 18.04

Introduction

Docker is a great tool for automating the deployment of Linux applications inside software containers, but to take full advantage of its potential, each component of an application should run in its own individual container. For complex applications with a lot of components, orchestrating all the containers to start up, communicate, and shut down together can quickly become unwieldy.

The Docker community came up with a popular solution called Fig, which allowed you to use a single YAML file to orchestrate all your Docker containers and configurations. This became so popular that the Docker team decided to make Docker Compose based on the Fig source, which is now deprecated.

Docker Compose makes it easier for users to orchestrate the processes of Docker containers, including starting up, shutting down, and setting up intra-container linking and volumes. In this tutorial, you’ll install the latest version of Docker Compose to manage multi-container applications.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

Still looking for an answer?

Was this helpful?

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!

This comment has been deleted

** Great article! **

No problem executing all the code, I tested with a Droplet Ubuntu 18.04.2 x64 1 vCPUs 3GB / 60GB and installed:

docker-compose version 1.23.2, build 1110ad01

Thanks a lot!

I think it would be better to use

sudo curl -L https://github.com/docker/compose/releases/download/latest/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

rather than what you have listed:

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

Hello…I was able to successfully install docker compose following the tutorial but I need to uninstall it and install version 1.2.9. Normally I should use sudo rm /usr/local/bin/docker-compose but on checking the bin folder, the docker-compose executable isn’t there. I have checked the other bin and sbin locations and it is not there either.

πŸ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

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.

Β© 2026 DigitalOcean, LLC.Sitemap.