Installing Docker CE on RHEL 7.7

Installing Docker CE on RHEL 7.7

Configure the Docker Repo
This is the scenario where we don't have yum facility to directly pull the packages, rather manually needs to add the repository and then apply yum command to install docker 

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


Linux Package Requirement Download Link
container-selinux-2.74-1.el7.noarch.rpm  http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/container-selinux-2.74-1.el7.noarch.rpm
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm http://mirror.centos.org/centos/7/extras/x86_64/Packages/fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
fuse3-libs-3.6.1-2.el7.x86_64.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/f/fuse3-libs-3.6.1-2.el7.x86_64.rpm
slirp4netns-0.4.3-4.el7_8.x86_64.rpm http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/slirp4netns-0.4.3-4.el7_8.x86_64.rpm

Install Prerequisite Packages
These packages come as a prerequisite for docker during the yum install command. So we need to manually download the packages and then install as a prerequisite for docker installation-
sudo rpm -ivh <PACKAGE_NAME>
sudo rpm -ivh container-selinux-2.74-1.el7.noarch.rpm 
sudo rpm -ivh fuse3-libs-3.6.1-2.el7.x86_64.rpm
sudo rpm -ivh fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
sudo rpm -ivh slirp4netns-0.4.3-4.el7_8.x86_64.rpm

Installing docker
 sudo yum install docker-ce
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.7-3.el7 will be installed
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.4.8-3.1.el7 will be installed
---> Package docker-ce-cli.x86_64 1:20.10.7-3.el7 will be installed
--> Processing Dependency: docker-scan-plugin(x86-64) for package: 1:docker-ce-cli-20.10.7-3.el7.x86_64
---> Package docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7 will be installed
--> Running transaction check
---> Package docker-scan-plugin.x86_64 0:0.8.0-3.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===================================================================================
 Package              Arch       Version          Repository            Size
===================================================================================
Installing:
 docker-ce            x86_64    3:20.10.7-3.el7   docker-ce-stable       27 M
Installing for dependencies:
 containerd.io        x86_64    1.4.8-3.1.el7     docker-ce-stable       30 M
 docker-ce-cli        x86_64    1:20.10.7-3.el7   docker-ce-stable       33 M
 docker-ce-rootless-extras                
                      x86_64    20.10.7-3.el7     docker-ce-stable       9.2 M
 docker-scan-plugin   x86_64    0.8.0-3.el7       docker-ce-stable       4.2 M
 
Transaction Summary
===================================================================================
Install  1 Package (+4 Dependent packages)
 
Total download size: 103 M
Installed size: 421 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/docker-ce-stable/packages/docker-ce-20.10.7-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-ce-20.10.7-3.el7.x86_64.rpm is not installed
(1/5): docker-ce-20.10.7-3.el7.x86_64.rpm                             |  27 MB  00:00:06
(2/5): containerd.io-1.4.8 3.1.el7.x86_64.rpm                         |  30 MB  00:00:07
(3/5): docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm                                                      | 9.2 MB  00:00:02
(4/5): docker-scan-plugin-0.8.0-3.el7.x86_64.rpm                      | 4.2 MB  00:00:01
(5/5): docker-ce-cli-20.10.7-3.el7.x86_64.rpm                         |  33 MB  00:00:07
-----------------------------------------------------------------------------------
Total                                                                                                 7.3 MB/s | 103 MB  00:00:14
Retrieving key from https://download.docker.com/linux/centos/gpg
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : docker-scan-plugin-0.8.0-3.el7.x86_64   1/5               
  Installing : 1:docker-ce-cli-20.10.7-3.el7.x86_64               2/5   
  Installing : containerd.io-1.4.8-3.1.el7.x86_64                 3/5
  Installing : docker-ce-rootless-extras-20.10.7-3.el7.x86_64     4/5
  Installing : 3:docker-ce-20.10.7-3.el7.x86_64                   5/5   
  Verifying  : 3:docker-ce-20.10.7-3.el7.x86_64                   1/5
  Verifying  : 1:docker-ce-cli-20.10.7-3.el7.x86_64               2/5   
  Verifying  : containerd.io-1.4.8-3.1.el7.x86_64                 3/5      
  Verifying  : docker-scan-plugin-0.8.0-3.el7.x86_64              4/5        
  Verifying  : docker-ce-rootless-extras-20.10.7-3.el7.x86_64     5/5                                                           
Installed:
  docker-ce.x86_64 3:20.10.7-3.el7
 
Dependency Installed:
  containerd.io.x86_64 0:1.4.8-3.1.el7      docker-ce-cli.x86_64 1:20.10.7-3.el7   docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7
  docker-scan-plugin.x86_64 0:0.8.0-3.el7
 
Complete!

Enable Docker Service
 sudo systemctl enable docker.service 
 Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.Start/Stop/Status/Restart docker commands

Start / Stop/ Status / Restart docker commands
 sudo systemctl start   docker.service
 sudo systemctl stop    docker.service
 sudo systemctl status  docker.service
 sudo systemctl restart docker.service

Comments

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c