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.
On Ubuntu 18.04, you can install docker-compose by simply running:
sudo apt-get install docker-compose -y
You can use this method to install the latest version of docker-compose on Debian 8+ and Ubuntu 16.04+ distributions.
sudo apt-get install python-pip -y \ && sudo pip install --upgrade pip \ && sudo pip install docker-compose
To test that you have successfully installed docker compose, run the following command:
First published: 16th August 2018