Installing Docker in Linux…

For installing docker you first need to setup Yum repo. Lets get started..

We will use following commands —

  1. su - root // switch to “root” user
  2. [root@dhcppc3 ~]# cd /etc/yum.repos.d/
    [root@dhcppc3 yum.repos.d]# touch docker.repo

3. Add the Following lines in the file docker.repo

[docker]
name = docker
baseurl = https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck=0

4. [root@dhcppc3 yum.repos.d]# yum repolist

5. [root@dhcppc3 yum.repos.d]# yum install docker-ce --nobest

6.

[root@localhost ~]# systemctl start docker
[root@localhost ~]# systemctl status docker

Thats it now docker services are Successfully installed and started…

— — — — —— — Thanks for Reading — — — — — — -