76 views

Installing Docker using the Yum command

Use Yum install docker to install docker in CentOS 7.

yum install docker

Based on your system configuration, it would resolve dependencies and show the list:

Dependencies Resolved

=============================================================================================
 Package                                      Arch         Version                           
=============================================================================================
Installing:
 docker                                       x86_64       2:1.13.1-102.git7f2769b.el7.centos
Installing for dependencies:
 atomic-registries                            x86_64       1:1.22.1-26.gitb507039.el7.centos 
 audit-libs-python                            x86_64       2.8.4-4.el7                       
 checkpolicy                                  x86_64       2.5-8.el7                         
 container-selinux                            noarch       2:2.107-1.el7_6                   
 container-storage-setup                      noarch       0.11.0-2.git5eaf76c.el7           
 containers-common                            x86_64       1:0.1.37-1.el7.centos             
 docker-client                                x86_64       2:1.13.1-102.git7f2769b.el7.centos
 docker-common                                x86_64       2:1.13.1-102.git7f2769b.el7.centos
 libcgroup                                    x86_64       0.41-20.el7                       
 libsemanage-python                           x86_64       2.5-14.el7                        
 oci-register-machine                         x86_64       1:0-6.git2b44233.el7              
 oci-systemd-hook                             x86_64       1:0.2.0-1.git05e6923.el7_6        
 oci-umount                                   x86_64       2:2.5-1.el7_6                     
 policycoreutils-python                       x86_64       2.5-29.el7_6.1                    
 python-IPy                                   noarch       0.75-6.el7                        
 python-backports                             x86_64       1.0-8.el7                         
 python-backports-ssl_match_hostname          noarch       3.5.0.1-1.el7                     
 python-ipaddress                             noarch       1.0.16-2.el7                      
 python-pytoml                                noarch       0.1.14-1.git7dea353.el7           
 python-setuptools                            noarch       0.9.8-7.el7                       
 setools-libs                                 x86_64       3.3.8-4.el7                       
 subscription-manager-rhsm-certificates       x86_64       1.21.10-3.el7.centos              

Transaction Summary
=============================================================================================
Install  1 Package (+22 Dependent packages)

Provide y to continue with the installation

Total download size: 25 M
Installed size: 88 M
Is this ok [y/d/N]: y

Yum will complete the installation for you,

Installed:
  docker.x86_64 2:1.13.1-102.git7f2769b.el7.centos

Dependency Installed:
  atomic-registries.x86_64 1:1.22.1-26.gitb507039.el7.centos
  audit-libs-python.x86_64 0:2.8.4-4.el7
  checkpolicy.x86_64 0:2.5-8.el7
  container-selinux.noarch 2:2.107-1.el7_6
  container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7
  containers-common.x86_64 1:0.1.37-1.el7.centos
  docker-client.x86_64 2:1.13.1-102.git7f2769b.el7.centos
  docker-common.x86_64 2:1.13.1-102.git7f2769b.el7.centos
  .....

Complete!

Start Docker service

systemctl start docker.service

Finally, enable the docker service as a service which would start when the OS is booted up

systemctl enable docker	

Verifying Docker version:

docker --version
Docker version 1.13.1, build 7f2769b/1.13.1

Start/Run Docker container as non-root user

Please refer to Docker user group creation for non-users

Sep 8, 2018 by | 76 views
DevOpsRun.com is LIVE!

Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows
..