• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Docker Compose on Ubuntu 20.04

Written by Admin, Updated On June 4, 2020
docker, ubuntu
How to Install Docker Compose on Ubuntu 20.04

Docker Compose is a command-line utility which used to setting up and running multi-container Docker applications. Generally, Compose is used for local development, single host application deployments, and automated testing. In this article, you will learn how to install Docker Compose on Ubuntu 20.04 Focal Fossa Linux.

Prerequisites#

  • Docker must installed on your Ubuntu system.

Install Docker Compose from Ubuntu Repository#

It is straightforward to install Docker Compose from Ubuntu repositories. In Ubuntu repositories it may not have the latest version always but its recommended way and it will provide a stable system and easy updates.

Run the following command to install docker-compose:

sudo apt install docker-compose

Check it’s version by typing:

docker-compose --version

Installing Docker Compose from Git Repository#

Compose installation from is easy and simple. At first, we will download the file to a directory that is in the system PATH and make it executable.

Currently, at the time of writing this article, the latest stable version of Docker Compose is 1.25.5. Before going ahead, visit the Compose repository release page on Github to check latest version. Run the below curl command to download the Compose file into the /usr/local/bin directory:

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Give the execute permissions to the file:

sudo chmod +x /usr/local/bin/docker-compose

Verify the installation by checking it’s version:

docker-compose --version

It will show something like this:

docker-compose version 1.25.5, build b02f1306

That’s it! Docker Compose is installed on your Ubuntu system and ready to use.

Uninstalling Docker Compose#

To uninstall Docker Compose, simply remove the binary by typing:

sudo rm /usr/local/bin/docker-compose

Conclusion#

This tutorial shown you how to install Docker Compose on Ubuntu 20.04. It’s a tool that allows you to create isolated containers that can be used to run your apps.

If you have any questions, please leave a comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Mount and Unmount File Systems in Linux
Next Article   How to Install R on Debian 10

Related Posts

  • How to Install Php 8 on Ubuntu 20.04

    How to Install PHP 8 on Ubuntu 20.04

    December 28, 2020
  • How to Install GIMP on Ubuntu 20.04

    How to Install GIMP 2.10 on Ubuntu 20.04

    December 22, 2020
  • How to Install Python 3.9 on Ubuntu 20.04

    How to Install Python 3.9 on Ubuntu 20.04

    December 21, 2020

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on Debian 10
    How to Install Python 3.9 on Debian 10 December 25, 2020
  • How to Install Python 3.9 on Ubuntu 20.04
    How to Install Python 3.9 on Ubuntu 20.04 December 21, 2020
  • How to Install GIMP on Ubuntu 20.04
    How to Install GIMP 2.10 on Ubuntu 20.04 December 22, 2020
  • How to Install Notepad++ on Debian 10
    How to Install Notepad++ on Debian 10 December 23, 2020
  • How to Install Php 8 on Debian 10
    How to Install PHP 8 on Debian 10 January 2, 2021
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook