How to install Docker on Linux (RHEL Centos Ubuntu Debian)

In this article we will be discussing step by step guide to install docker on Linux on various flavours such as RHEL/Centos/Ubuntu/Debian.

Kindly note that there are two types of Docker available in the market CE (Community Edition (CE) is ideal for developers and small teams)and EE (Enterprise Edition (EE) 2.0 is the only enterprise-ready). So in case your operating system is Enterprise level then you cannot install CE version of docker. You can only intall EE type of Docker on it.

Docker is an containerised environment which can be installed on OS like Linux, Windows and even on Mac also using which we can run many services using images. Please follow this article to know more about Docker.

Steps to Install Docker on Linux ( RHEL and Centos).

1. Firstly install device mapper that gives us ability to use different types of storage sub-systems for containers and also lvm2.

6. In case you want to check the current status of the docker fire below command:

1

# systemctl status docker

7. If you would like to use Docker as a non-root user(manmohan user in my case), you should now consider
adding your user to the “docker” group with something like this so that normal user can able to run docker commands:

6. If you would like to use Docker as a non-root user(manmohan user in my case), you should now consider
adding your user to the “docker” group with something like this so that normal user can able to run docker commands:

1

# usermod -aG docker manmohan

7. Check current version of Docker using below command:

1

2

3

$docker--version

Docker version18.03.1-ce,build9ee9f40

$

In this way we can able to Install Docker on Linux with various flavours such as RHEL/Centos/Ubuntu and Debian.

If this post helped you by any means, then Please
Support Us! by making Payment Payment Link.
Subscribe For RSS Feed::Here.
Like my facebook page FaceBook PageFollow Us on Twitter::TwitterFollow Us on YouTube::YouTube