Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker compose on Ubuntu 19.04 make sure that you have Docker installed.
Prerequisites
- Ubuntu 19.04
- Docker
- sudo privileges
Install Docker Compose
Download the Docker Compose binary into the /usr/local/bin
directory.
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Once is finished add the needed permissions for execution to the Composer binary.
sudo chmod +x /usr/local/bin/docker-compose
Check if Docker Compose is installed.
docker-compose --version
The output should look like:
docker-compose version 1.25.0, build 0a186604
Docker Compose is successfully installed on Ubuntu 19.04.
Uninstalling Docker Compose
If you want to remove the Docker Compose for any specific reason you can simply execute the following command:
sudo rm /usr/local/bin/docker-compose
Conclusion
In this tutorial we’ve shown you how to install Docker Compose on Ubuntu 19.04
and if you have some further questions please put a comment in the box below. For more information about using Docker Compose you can find in the Docker official documentation.
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.