Docker Installtion

Docker is a virtual container for running web applications. It can used for other purposes, but mainly it used to run web applications. Popularity of docker is increasing in startup companies day by day. Docker will enable to get same environment for developers works remotely. I have used vagrant in my machines to run Ruby on rails applications on Windows. Vagrant enable as to get linux boxes which can use with Vagrant along with VMware or Virtual Box.

What is Vagrant and Docker

Vagrant and Docker are modern tool for developers, both providers isolated, similar working environment for  developers, who works in same office or remote location. Both provide almost same experience but have different approach, same experience in for developers but setup will be different. Vagrant use a Virtualization and Docker use Containerisation. If you are using Windows operating system and you can run Linux on it using Vagrant, but in other hand you need a Linux host to run Linux docker image.

Graphical representation for Docker
Graphical representation for Docker
Graphical representation Vagrant
Graphical representation for Vagrant

As seen you can understand that we have guest operating system on host operating system, host and guest can be any os, like Windows, Linux or Mac. But in case of containerisation we have only one host operating system and images use same kernel space of host operating system. For this reason performance benchmark is higher for docker but complete isolation can’t achieve, also we can’t run linux images on Windows server and vise versa in containerisation.

Vagrant abstract machine , Docker abstract application


In this tutorial we are learning how to install Docker on Linux Mint 18+, this same like Ubuntu but as we know LinuxMint is a bit late than Ubuntu.


Update repository

Install packages to allow apt to use a repository over HTTPS

Add Docker’s official GPG Key

Setup repository

Here we have to be careful here, this  $(lsb_release -cs), it you run on Ubuntu, it won’t make any issues but if you run on LinuxMint, it may make issues, this will add LinuxMint’s stable version not Ubuntu’s stable version. So first you need to change to ubuntu version used for current LinuxMint. For example LinuxMint 18.X uses Ubuntu Xenial version. You can edit this name here xenial or you can edit this file /etc/apt/sources.list.d/additional-repositories.list

Edit repository list

You can also change stable to edge if you need latest features. Once you complete.

Update Repositories and Install docker

Verify Docker installation ( Connect your Internet)

Successful docker Installation

Create dockergroup

We need root permission for docker, so we need to append sudo every time. Below code will create docker group and add current user


List all Docker images


Remove Docker Containers and Images

Remove all images which have dependent children

We have installed Docker successfully, now we can learn how to install docker for specified application requirements in upcoming blog posts. Subscribe this blog to get latest Frontend related posts.