How to install Docker compose Linux Mint

- Advertisment -
- Advertisement -

Docker is really a very interesting platform that makes easy to operate server software virtually without installing on the physical bare-metal hardware or host operating system. It helps in deploying a container platform for common operating system on the server, developer or personal desktop PC.

In containers, each operating system has its own confined area which makes it safe to run without the interference of others on a single host operating system. And that operating could be any for what the Docker is available such as Linux Mint, CentOS, Ubuntu, Debian, Windows, etc.

Unfortunately, the official Docker documentation is very vast and not complicated for Docker noobies. Thus, here we are with one for Ubuntu or Linux Mint to easily understand and install it.  Docker is available in two versions: The Community Edition which is open-source and anybody can use it. It has all the functions needed to operate containers and can be used on servers and on development and test machines. If you have enough knowledge of how it works you can easily use the community edition in production mode.

On the other hand, the Enterprise Edition is meant for large organizations those are running hundreds of containers and need enterprise support and some management functions along with the “Universal Control Plane,” there is a web interface for the cluster management solution for Docker running container infrastructure.

Install Docker and Docker composer on Linux Mint 19

Tutorial: The steps here are performed on the Linux Mint 19 to install Docker engine, however, they will be the same for Ubuntu 19.04, 18.04… elementary OS and other Ubuntu-based Linux operating system.

Update Linux Mint packages to the latest

First, of all run the system update command to make sure all the installed packages on the system are in their latest state. For that simply use the below command:

sudo apt update

Install https protocol, curl and common properties

To install Docker and Docker compose on Linux Mint, we have to prepare it by installing some packages such to get the Docker packages on a secure protocol, we have to install https-transport along wth curl to download gpg key and software common properties to get some useful scripts to manage PPA and DBus backend. And also Gnupg-agent.

sudo apt-get install apt-transport-https ca-certificates
sudo apt install curl
sudo apt install gnupg-agent
sudo apt install software-properties-common

Import Docker GPG key

To make sure, we have installed Docker packages from the authentic source our system needs a key for Docker that used to sign its packages. Here we need the curl which we have installed above

curl -fsSL | sudo apt-key add -

Get the Docker repository for Linux Mint 19

The default repository of Linux Mint which comes from Ubuntu doesn’t feature Docker Packages and we need to add the official docker repository on our Linux Mint machine so that we can download and install docker using a single command.

sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"

Install Docker Engine ( Compose, CLI and Container) on Linux Mint

Here is the single command to install complete Docker engine along with docker cli and

sudo apt install docker-ce docker-compose

Configure Docker to start on boot

If you want the Docker service automatically starts with boot then enable its service in the system.

sudo systemctl enable docker
sudo systemctl start docker

Test docker by install OS image

Here we are installing CentOS 7 latest available image of this server OS in docker hub by using docker pull command. To pull any software or OS image we should know its tag. You can find all the tags at

So, to install CentOS, the command is:

sudo docker pull centos

in the above command, the centos is the tag to fetch and install the latest docker image of this OS.

Docker installation on Linux mint 19

Run Docker Image on Linux Mint

To run any downloaded docker image follow the below command:

sudo docker run -it centos
RUn docker image on Linux Mint 19

Other Tutorial:

H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

How to open Windows PowerShell in a specific location of explorer

We hardly like dealing with the Command-line interface or CLI on Windows, but it becomes inevitable at...

All about the EROFS file system for Linux file system by Huawei

When it comes to storage technologies, the reliability of storing data digitally is improving day by day,...

How to convert Word document to JPEG online on all platforms

After you have finished preparing some documents using Microsoft Word, the program of choice for most users,...

IT Industry experts weigh in on International Data Privacy Day

Data Privacy Day aims to raise awareness and promote privacy and data protection best practices and is observed in...
- Advertisement -

Stellar Announces New Version of Bitraser on Data Privacy Day

BitRaser Data Erasure software helps companies safely reuse old IT assets & mitigate risk of data breach. On the occasion...

Portronics introduces POWER BUN, a Universal USB Charging Hub

As per the recent press release public by the Portronics, the company has launched a new product that is...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you