This article is for those looking for a detailed and clear guide on how to install Docker Compose on Ubuntu Server.

Docker Compose is a tool for managing the containers that make up a distributed application. Moreover, you can manage not only containers, but also connected folders, networks, and other settings.

In this guide, we will consider the case when you already have a server with the Ubuntu Server 20.04 LTS operating system installed on it.

You can read more about how to install Ubuntu Server 20.04 LTS in my guide “Install Ubuntu Server 20.04 LTS”.

Also, the Docker Engine must be installed on the server.

You can learn how to install Docker Engine on Ubuntu Server by reading “Install Docker Engine on Ubuntu Server”.

In addition, OpenSSH must be installed on the server, and port 22 must be open in order to be able to connect to the server using the SSH protocol.

To install OpenSSH on a server, you can use the command:

sudo apt install openssh-server

If you plan to connect to the server using the Windows operating system, you can use PuTTY, a free client for various remote access protocols, including SSH, Telnet, rlogin.

This guide describes how to connect to a server using the iTerm2 terminal emulator installed on the macOS operating system.

We connect to the server on which you plan to install Docker Compose.

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

Please note, the link to the current version of Docker Compose can be found on the official Docker Docs website.

Install Docker Compose on Ubuntu Server

Now let’s grant executable permissions to the binary using the command:

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

Install Docker Compose on Ubuntu Server

Now you need to make sure that Docker Compose is installed correctly. To do this, you need to run the command:

docker-compose --version

Install Docker Compose on Ubuntu Server

Based on the message received, Docker Compose is installed correctly.

Install Docker Compose on Ubuntu Server

Vladimir Mikhalev
hey, I’m Vladimir Mikhalev, but my friends call me Valdemar. I have a lot of experience in the design and maintenance of various information systems.

Recent Posts