• 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 22.04

Written by Admin, Updated On January 6, 2023
docker, ubuntu
How to Install Docker Compose on Ubuntu 22.04

Docker Compose is a command-line utility to set up and run multi container Docker applications. Generally, Compose is used for local development, single host application deployments, and automated testing. In this guide, we will show you how to install Docker Compose on Ubuntu 22.04 Jammy Jellyfish Linux.

Prerequisites#

  • You must logged in as non-root user with the sudo privileges.
  • Docker must installed on your Ubuntu system.

Install Docker Compose from Ubuntu Repository#

It is easy 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#

Peform the following steps to install docker compose from Git repository:

Step 1 – Download Compose File#

Compose installation is straightforward and simple. At first, we need to 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 2.12.2. 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/2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Step 2 – Set Execute Permission#

You should give the execute permissions to the file using below command:

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

Step 3 – Check Version#

Verify the installation by checking it’s version:

docker-compose --version

It will show something like this:

docker-compose version 2.12.2

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#

You successfully learned how to install Docker Compose on Ubuntu 22.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 Install Docker on Ubuntu 22.04
Next Article   How to Install Apache Cassandra on Debian 11

Related Posts

  • How to Install Apache, MySQL, PHP (LAMP) on Ubuntu 22.04

    How to Install LAMP on Ubuntu 22.04

    March 20, 2023
  • How to Install LEMP Stack on Ubuntu 22.04

    How to Install LEMP Stack on Ubuntu 22.04

    March 18, 2023
  • How to Install Memcached on Ubuntu 22.04

    How to Install Memcached on Ubuntu 22.04

    March 16, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install Microsoft Edge Browser on Ubuntu 22.04
    How to Install Microsoft Edge Browser on Ubuntu 22.04 March 14, 2023
  • How to Install Ruby on Ubuntu 22.04 LTS
    How to Install Ruby on Ubuntu 22.04 LTS February 27, 2023
  • How to Install LEMP Stack on Ubuntu 22.04
    How to Install LEMP Stack on Ubuntu 22.04 March 18, 2023
  • How to Install Set Up Apache Virtual Hosts on Ubuntu 22.04
    How to Set Up Apache Virtual Hosts on Ubuntu 22.04 March 2, 2023
  • How to Install MariaDB on Debian 11 Bullseye
    How to Install MariaDB on Debian 11 Bullseye March 8, 2023
© 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