How to Install Docker Compose on Debian 9

Table of Contents
Install and Use Docker Compose on Debian 9
Docker Compose is an opensource utility used for setting up different things like automated testing, hosting application deployemt etc. Dcoker Compose enables you to manage multi-container applications by using YAML file. In this tutorial you are going to learn How to Install Docker Compose on Debian 9.
Prerequisites
Before you start to Install and Use Docker Compose on Debian 9. You must be logged in with non-root user account on your system with sudo privileges.
Install Latest Version of Docker Compose
The Debian 9 official repository do not always contain the latest version of Docker Compose. Because of this, we need to install the latest version of Docker Composer by downloading it from Github’s Docker Compose Repository Release Page. At the time of writing this tutorial, the latest version available of Docker Compose is 1.24.0
. You can check if new version available by visiting this page.
To download Docker Compose you can open terminal by pressing Ctrl+Alt+t
the running following curl command in it:
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Now you should set the permission to /usr/local/bin/docker-compose
directory run below commands:
sudo chmod +x /usr/local/bin/docker-compose
Confirm the installation and verify the Docker Compose version number by typing following command:
docker-compose --version
The output should be:
docker-compose version 1.24.0, build C14f0307
Now you have successfully installed Docker Compose on Debian 9.
Uninstall Docker Compose
To uninstall Docker Compose, you can just remove directory /usr/local/bin/docker-compose
by running following command:
sudo rm /usr/local/bin/docker-compose
Conclusion
Here you have successfully learned How to Install Docker Compose on Debian 9. If you have any queries regarding this then you can comment below.
LATEST POSTS
-
11 Wget Command Examples in Linux (Linux File Downloader)
-
How to Install Sublime Text 3 on Debian 9
-
How to Install Yarn on Linux Mint 10
-
How to setup UFW firewall on Ubuntu 18.04
-
How to install Java on Debian 9
-
How to Install XAMPP on Fedora 29
-
How to List Installed Packages on Linux Mint 18
-
How to Change Hostname on Ubuntu 18.04
-
How to Install Android Studio in Linux
-
How to Install Apache Tomcat 9 on CentOS 7
-
How to Install Gradle on Linux Mint 19
-
Secure Apache with Let’s Encrypt SSL on Ubuntu 18.04