How to install Docker community edition on RHEL 7

Please provide the steps to install Docker community edition on RedHat Enterprise Linux 7

Asked on 29th June 2019 in General.
Add Comment
1 Answer(s)

Install EPEL Repo

rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install Docker

Add the docker repository

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --enable docker-ce-nightly
yum-config-manager --enable docker-ce-test
 

 

Install pre-requisite dependencies

yum install -y yum-utils device-mapper-persistent-data lvm2 http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
 

 

Install Docker 

yum install docker-ce docker-ce-cli containerd.io 
 
 

 

Sample Output after installation

 

Installed:
container-selinux.noarch 2:2.9-4.el7 docker-ce.x86_64 3:18.09.2-3.el7
 
Dependency Installed:
audit-libs-python.x86_64 0:2.7.6-3.el7 checkpolicy.x86_64 0:2.5-4.el7 containerd.io.x86_64 0:1.2.2-3.3.el7 docker-ce-cli.x86_64 1:18.09.2-3.el7 libcgroup.x86_64 0:0.41-13.el7 libseccomp.x86_64 0:2.3.1-3.el7 libsemanage-python.x86_64 0:2.5-8.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 policycoreutils-python.x86_64 0:2.5-17.1.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-1.1.el7
 
Updated:
dracut.x86_64 0:033-502.el7_4.1 initscripts.x86_64 0:9.49.39-1.el7
 
Dependency Updated:
audit.x86_64 0:2.7.6-3.el7 audit-libs.x86_64 0:2.7.6-3.el7 device-mapper.x86_64 7:1.02.140-8.el7 device-mapper-event.x86_64 7:1.02.140-8.el7 device-mapper-event-libs.x86_64 7:1.02.140-8.el7 device-mapper-libs.x86_64 7:1.02.140-8.el7 device-mapper-persistent-data.x86_64 0:0.7.0-0.1.rc6.el7 dracut-config-rescue.x86_64 0:033-502.el7_4.1 dracut-network.x86_64 0:033-502.el7_4.1 glib2.x86_64 0:2.50.3-3.el7 kmod.x86_64 0:20-15.el7_4.6 libgudev1.x86_64 0:219-42.el7_4.4 libselinux.x86_64 0:2.5-11.el7 libselinux-python.x86_64 0:2.5-11.el7 libselinux-utils.x86_64 0:2.5-11.el7 libsemanage.x86_64 0:2.5-8.el7 libsepol.x86_64 0:2.5-6.el7 lvm2.x86_64 7:2.02.171-8.el7 lvm2-libs.x86_64 7:2.02.171-8.el7 policycoreutils.x86_64 0:2.5-17.1.el7 selinux-policy.noarch 0:3.13.1-166.el7_4.7 selinux-policy-targeted.noarch 0:3.13.1-166.el7_4.7 systemd.x86_64 0:219-42.el7_4.4 systemd-libs.x86_64 0:219-42.el7_4.4 systemd-sysv.x86_64 0:219-42.el7_4.4

 

Answered on 29th June 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.