- Advertisment -
Home How To How to install Docker compose Linux Mint

How to install Docker compose Linux Mint

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.

- Ad-

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 https://download.docker.com/linux/ubuntu/gpg | 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] https://download.docker.com/linux/ubuntu $(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 conatinerd.io

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 hub.docker.com.

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.

- Advertisment -

Latest Posts

Laptop vs. desktop- Final guide to purchasing your next computer

Most users, who are willing to purchase a computer are often confused between whether they should go for a...

Telefunken 32inch Smart Tv TFK32QS Review: Price ₹ 9,999

Telefunken which is one of the oldest German Electronic brands, deals in consumer products, however, in India, Videotex International...

Why satellite internet is not popular among regular users? Pros & Cons

In the nineties and even at the beginning of the following century, having an Internet connection was no less...

How to Export Microsoft edge favorites to use in Chrome browser

Here we will show the steps to export the Favorites from the Microsoft Edge browser and use the same...
- Advertisement -

9 Best & Top Open source IoT Platforms To Develop the IOT Projects

The Internet of Things (IoT) is the future of technology that helps the Artificial intelligence (AI) to control and...

Technology in classrooms: What are the benefits of technology in the classroom?

Technology in classrooms is the most effective way in today's era to completely eradicate the ignorance from students life...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you