Install Docker Compose
After installing Docker, you may also want to install Docker Compose. This tool allows you to manage applications that rely on multiple containers instead of just one.
Using PIP3 (recommended)
If you are using Debian 10, and probably the case for Ubuntu 20.04 too, then you want to install docker-compose using the following:
sudo apt-get install python3-pip -y \ && sudo pip3 install --upgrade pip \ && sudo pip3 install docker-compose
- Debian 10 - docker-compose version 1.25.5, build unknown
This method was what I used when installing the latest version of docker-compose on Debian 8 and Ubuntu 16.04.
sudo apt-get install python-pip -y \ && sudo pip install --upgrade pip \ && sudo pip install docker-compose
On Ubuntu 18.04, you can install docker-compose by simply running:
sudo apt-get install docker-compose -y
To test that you have successfully installed docker compose, run the following command:
First published: 16th August 2018