Installation of Docker on Oracle Enterprise Linux 8

This article will provide the details for  the installation of the docker package on Oracle Enterprise Linux 8.7:

Installation of Pre-Requisite packages:
[root@localhost ~]# dnf install -y dnf-utils zip unzip

Oracle Linux 8 BaseOS Latest (x86_64)            10 kB/s | 3.6 kB     00:00    
Oracle Linux 8 BaseOS Latest (x86_64)           6.1 MB/s |  58 MB     00:09    
Oracle Linux 8 Application Stream (x86_64)       12 kB/s | 3.9 kB     00:00    
Oracle Linux 8 Application Stream (x86_64)      4.7 MB/s |  46 MB     00:09    
Oracle Linux 8 CodeReady Builder (x86_64) - Uns 9.8 kB/s | 3.3 kB     00:00    
Oracle Linux 8 CodeReady Builder (x86_64) - Uns 3.0 MB/s | 8.4 MB     00:02    
Oracle Linux 8 Distro Builder (x86_64) - Unsupp  10 kB/s | 3.3 kB     00:00    
Oracle Linux 8 Distro Builder (x86_64) - Unsupp 1.5 MB/s | 1.7 MB     00:01    
Latest Unbreakable Enterprise Kernel Release 7  9.4 kB/s | 3.0 kB     00:00    
Package zip-3.0-23.el8.x86_64 is already installed.
Package unzip-6.0-46.0.1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package                  Arch   Version                Repository         Size
================================================================================
Installing:
 yum-utils                noarch 4.0.21-19.0.1.el8_8    ol8_baseos_latest  75 k
Upgrading:
 dnf-plugins-core         noarch 4.0.21-19.0.1.el8_8    ol8_baseos_latest  76 k
 python3-dnf-plugins-core noarch 4.0.21-19.0.1.el8_8    ol8_baseos_latest 262 k

Transaction Summary
================================================================================
Install  1 Package
Upgrade  2 Packages

Total download size: 413 k
Downloading Packages:
(1/3): yum-utils-4.0.21-19.0.1.el8_8.noarch.rpm 168 kB/s |  75 kB     00:00    
(2/3): dnf-plugins-core-4.0.21-19.0.1.el8_8.noa 143 kB/s |  76 kB     00:00    
(3/3): python3-dnf-plugins-core-4.0.21-19.0.1.e 428 kB/s | 262 kB     00:00    
--------------------------------------------------------------------------------
Total                                           661 kB/s | 413 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Upgrading        : python3-dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch    1/5 
  Upgrading        : dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch            2/5 
  Installing       : yum-utils-4.0.21-19.0.1.el8_8.noarch                   3/5 
  Cleanup          : dnf-plugins-core-4.0.21-14.1.0.1.el8.noarch            4/5 
  Cleanup          : python3-dnf-plugins-core-4.0.21-14.1.0.1.el8.noarch    5/5 
  Running scriptlet: python3-dnf-plugins-core-4.0.21-14.1.0.1.el8.noarch    5/5 
  Verifying        : yum-utils-4.0.21-19.0.1.el8_8.noarch                   1/5 
  Verifying        : dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch            2/5 
  Verifying        : dnf-plugins-core-4.0.21-14.1.0.1.el8.noarch            3/5 
  Verifying        : python3-dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch    4/5 
  Verifying        : python3-dnf-plugins-core-4.0.21-14.1.0.1.el8.noarch    5/5 

Upgraded:
  dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch                                   
  python3-dnf-plugins-core-4.0.21-19.0.1.el8_8.noarch                           
Installed:
  yum-utils-4.0.21-19.0.1.el8_8.noarch                                          

Complete!
[root@localhost ~]# 
[root@localhost ~]#
Adding the docker repository:
[root@localhost ~]# dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[root@localhost ~]#
Installation of Docker package:
 [root@localhost ~]# dnf remove -y runc
Dependencies resolved.
================================================================================
 Package      Arch   Version                                   Repository  Size
================================================================================
Removing:
 runc         x86_64 1:1.1.4-1.module+el8.7.0+20873+328b8baa   @AppStream 9.5 M
Removing dependent packages:
 buildah      x86_64 1:1.27.0-2.module+el8.7.0+20873+328b8baa  @AppStream  26 M
 cockpit-podman
              noarch 53-1.module+el8.7.0+20873+328b8baa        @AppStream 548 k
 podman       x86_64 3:4.2.0-1.module+el8.7.0+20873+328b8baa   @AppStream  41 M
Removing unused dependencies:
 conmon       x86_64 3:2.1.4-1.module+el8.7.0+20873+328b8baa   @AppStream 172 k
 container-selinux
              noarch 2:2.189.0-1.module+el8.7.0+20873+328b8baa @AppStream  57 k
 containers-common
              x86_64 2:1-40.0.1.module+el8.7.0+20876+328b8baa  @AppStream 107 k
 criu         x86_64 3.15-3.module+el8.7.0+20873+328b8baa      @AppStream 1.4 M
 fuse-overlayfs
              x86_64 1.9-1.module+el8.7.0+20873+328b8baa       @AppStream 145 k
 libnet       x86_64 1.1.6-15.el8                              @AppStream 170 k
 libslirp     x86_64 4.4.0-1.module+el8.7.0+20873+328b8baa     @AppStream 134 k
 podman-catatonit
              x86_64 3:4.2.0-1.module+el8.7.0+20873+328b8baa   @AppStream 764 k
 shadow-utils-subid
              x86_64 2:4.6-17.el8                              @anaconda  205 k
 slirp4netns  x86_64 1.2.0-2.module+el8.7.0+20873+328b8baa     @AppStream 103 k

Transaction Summary
================================================================================
Remove  14 Packages

Freed space: 81 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: buildah-1:1.27.0-2.module+el8.7.0+20873+328b8baa.x86   1/1 
  Erasing          : buildah-1:1.27.0-2.module+el8.7.0+20873+328b8baa.x    1/14 
  Erasing          : cockpit-podman-53-1.module+el8.7.0+20873+328b8baa.    2/14 
  Running scriptlet: podman-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86    3/14 
  Erasing          : podman-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86    3/14 
  Running scriptlet: podman-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86    3/14 
  Erasing          : containers-common-2:1-40.0.1.module+el8.7.0+20876+    4/14 
  Erasing          : container-selinux-2:2.189.0-1.module+el8.7.0+20873    5/14 
  Running scriptlet: container-selinux-2:2.189.0-1.module+el8.7.0+20873    5/14 
  Erasing          : podman-catatonit-3:4.2.0-1.module+el8.7.0+20873+32    6/14 
  Erasing          : slirp4netns-1.2.0-2.module+el8.7.0+20873+328b8baa.    7/14 
  Erasing          : runc-1:1.1.4-1.module+el8.7.0+20873+328b8baa.x86_6    8/14 
  Erasing          : criu-3.15-3.module+el8.7.0+20873+328b8baa.x86_64      9/14 
  Erasing          : libnet-1.1.6-15.el8.x86_64                           10/14 
  Running scriptlet: libnet-1.1.6-15.el8.x86_64                           10/14 
  Erasing          : libslirp-4.4.0-1.module+el8.7.0+20873+328b8baa.x86   11/14 
  Erasing          : fuse-overlayfs-1.9-1.module+el8.7.0+20873+328b8baa   12/14 
  Erasing          : conmon-3:2.1.4-1.module+el8.7.0+20873+328b8baa.x86   13/14 
  Erasing          : shadow-utils-subid-2:4.6-17.el8.x86_64               14/14 
  Running scriptlet: shadow-utils-subid-2:4.6-17.el8.x86_64               14/14 
  Verifying        : buildah-1:1.27.0-2.module+el8.7.0+20873+328b8baa.x    1/14 
  Verifying        : cockpit-podman-53-1.module+el8.7.0+20873+328b8baa.    2/14 
  Verifying        : conmon-3:2.1.4-1.module+el8.7.0+20873+328b8baa.x86    3/14 
  Verifying        : container-selinux-2:2.189.0-1.module+el8.7.0+20873    4/14 
  Verifying        : containers-common-2:1-40.0.1.module+el8.7.0+20876+    5/14 
  Verifying        : criu-3.15-3.module+el8.7.0+20873+328b8baa.x86_64      6/14 
  Verifying        : fuse-overlayfs-1.9-1.module+el8.7.0+20873+328b8baa    7/14 
  Verifying        : libnet-1.1.6-15.el8.x86_64                            8/14 
  Verifying        : libslirp-4.4.0-1.module+el8.7.0+20873+328b8baa.x86    9/14 
  Verifying        : podman-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86   10/14 
  Verifying        : podman-catatonit-3:4.2.0-1.module+el8.7.0+20873+32   11/14 
  Verifying        : runc-1:1.1.4-1.module+el8.7.0+20873+328b8baa.x86_6   12/14 
  Verifying        : shadow-utils-subid-2:4.6-17.el8.x86_64               13/14 
  Verifying        : slirp4netns-1.2.0-2.module+el8.7.0+20873+328b8baa.   14/14 

Removed:
  buildah-1:1.27.0-2.module+el8.7.0+20873+328b8baa.x86_64                       
  cockpit-podman-53-1.module+el8.7.0+20873+328b8baa.noarch                      
  conmon-3:2.1.4-1.module+el8.7.0+20873+328b8baa.x86_64                         
  container-selinux-2:2.189.0-1.module+el8.7.0+20873+328b8baa.noarch            
  containers-common-2:1-40.0.1.module+el8.7.0+20876+328b8baa.x86_64             
  criu-3.15-3.module+el8.7.0+20873+328b8baa.x86_64                              
  fuse-overlayfs-1.9-1.module+el8.7.0+20873+328b8baa.x86_64                     
  libnet-1.1.6-15.el8.x86_64                                                    
  libslirp-4.4.0-1.module+el8.7.0+20873+328b8baa.x86_64                         
  podman-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86_64                         
  podman-catatonit-3:4.2.0-1.module+el8.7.0+20873+328b8baa.x86_64               
  runc-1:1.1.4-1.module+el8.7.0+20873+328b8baa.x86_64                           
  shadow-utils-subid-2:4.6-17.el8.x86_64                                        
  slirp4netns-1.2.0-2.module+el8.7.0+20873+328b8baa.x86_64                      

Complete!
[root@localhost ~]#
 [root@localhost ~]# dnf install -y docker-ce --nobest
Docker CE Stable - x86_64                        62 kB/s |  46 kB     00:00    
Dependencies resolved.
================================================================================
 Package                   Arch   Version               Repository         Size
================================================================================
Installing:
 docker-ce                 x86_64 3:24.0.2-1.el8        docker-ce-stable   24 M
Installing dependencies:
 container-selinux         noarch 2:2.205.0-2.module+el8.8.0+21045+adcb6a64
                                                        ol8_appstream      64 k
 containerd.io             x86_64 1.6.21-3.1.el8        docker-ce-stable   34 M
 docker-ce-cli             x86_64 1:24.0.2-1.el8        docker-ce-stable  7.2 M
 docker-ce-rootless-extras x86_64 24.0.2-1.el8          docker-ce-stable  4.9 M
 fuse-overlayfs            x86_64 1.11-1.module+el8.8.0+21056+d98a0860
                                                        ol8_appstream      74 k
 libcgroup                 x86_64 0.41-19.el8           ol8_baseos_latest  70 k
 libslirp                  x86_64 4.4.0-1.module+el8.8.0+21045+adcb6a64
                                                        ol8_appstream      70 k
 slirp4netns               x86_64 1.2.0-2.module+el8.8.0+21045+adcb6a64
                                                        ol8_appstream      54 k
Installing weak dependencies:
 docker-buildx-plugin      x86_64 0.10.5-1.el8          docker-ce-stable   12 M
 docker-compose-plugin     x86_64 2.18.1-1.el8          docker-ce-stable   12 M

Transaction Summary
================================================================================
Install  11 Packages

Total download size: 94 M
Installed size: 362 M
Downloading Packages:
(1/11): docker-buildx-plugin-0.10.5-1.el8.x86_6 1.6 MB/s |  12 MB     00:07    
(2/11): docker-ce-cli-24.0.2-1.el8.x86_64.rpm   1.6 MB/s | 7.2 MB     00:04    
(3/11): docker-ce-24.0.2-1.el8.x86_64.rpm       1.8 MB/s |  24 MB     00:13    
(4/11): containerd.io-1.6.21-3.1.el8.x86_64.rpm 2.4 MB/s |  34 MB     00:13    
(5/11): docker-ce-rootless-extras-24.0.2-1.el8. 1.9 MB/s | 4.9 MB     00:02    
(6/11): libcgroup-0.41-19.el8.x86_64.rpm        127 kB/s |  70 kB     00:00    
(7/11): fuse-overlayfs-1.11-1.module+el8.8.0+21 538 kB/s |  74 kB     00:00    
(8/11): libslirp-4.4.0-1.module+el8.8.0+21045+a 693 kB/s |  70 kB     00:00    
(9/11): slirp4netns-1.2.0-2.module+el8.8.0+2104 529 kB/s |  54 kB     00:00    
(10/11): container-selinux-2.205.0-2.module+el8 179 kB/s |  64 kB     00:00    
(11/11): docker-compose-plugin-2.18.1-1.el8.x86 4.0 MB/s |  12 MB     00:02    
--------------------------------------------------------------------------------
Total                                           5.7 MB/s |  94 MB     00:16     
Docker CE Stable - x86_64                       4.3 kB/s | 1.6 kB     00:00    
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) "
 Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 From       : https://download.docker.com/linux/centos/gpg
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: container-selinux-2:2.205.0-2.module+el8.8.0+21045    1/11 
  Installing       : container-selinux-2:2.205.0-2.module+el8.8.0+21045    1/11 
  Running scriptlet: container-selinux-2:2.205.0-2.module+el8.8.0+21045    1/11 
  Installing       : docker-compose-plugin-2.18.1-1.el8.x86_64             2/11 
  Running scriptlet: docker-compose-plugin-2.18.1-1.el8.x86_64             2/11 
  Installing       : containerd.io-1.6.21-3.1.el8.x86_64                   3/11 
  Running scriptlet: containerd.io-1.6.21-3.1.el8.x86_64                   3/11 
  Installing       : libslirp-4.4.0-1.module+el8.8.0+21045+adcb6a64.x86    4/11 
  Installing       : slirp4netns-1.2.0-2.module+el8.8.0+21045+adcb6a64.    5/11 
  Installing       : fuse-overlayfs-1.11-1.module+el8.8.0+21056+d98a086    6/11 
  Running scriptlet: fuse-overlayfs-1.11-1.module+el8.8.0+21056+d98a086    6/11 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                          7/11 
  Installing       : libcgroup-0.41-19.el8.x86_64                          7/11 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                          7/11 
  Installing       : docker-buildx-plugin-0.10.5-1.el8.x86_64              8/11 
  Running scriptlet: docker-buildx-plugin-0.10.5-1.el8.x86_64              8/11 
  Installing       : docker-ce-cli-1:24.0.2-1.el8.x86_64                   9/11 
  Running scriptlet: docker-ce-cli-1:24.0.2-1.el8.x86_64                   9/11 
  Installing       : docker-ce-rootless-extras-24.0.2-1.el8.x86_64        10/11 
  Running scriptlet: docker-ce-rootless-extras-24.0.2-1.el8.x86_64        10/11 
  Installing       : docker-ce-3:24.0.2-1.el8.x86_64                      11/11 
  Running scriptlet: docker-ce-3:24.0.2-1.el8.x86_64                      11/11 
  Running scriptlet: container-selinux-2:2.205.0-2.module+el8.8.0+21045   11/11 

  Running scriptlet: docker-ce-3:24.0.2-1.el8.x86_64                      11/11 
  Verifying        : containerd.io-1.6.21-3.1.el8.x86_64                   1/11 
  Verifying        : docker-buildx-plugin-0.10.5-1.el8.x86_64              2/11 
  Verifying        : docker-ce-3:24.0.2-1.el8.x86_64                       3/11 
  Verifying        : docker-ce-cli-1:24.0.2-1.el8.x86_64                   4/11 
  Verifying        : docker-ce-rootless-extras-24.0.2-1.el8.x86_64         5/11 
  Verifying        : docker-compose-plugin-2.18.1-1.el8.x86_64             6/11 
  Verifying        : libcgroup-0.41-19.el8.x86_64                          7/11 
  Verifying        : container-selinux-2:2.205.0-2.module+el8.8.0+21045    8/11 
  Verifying        : fuse-overlayfs-1.11-1.module+el8.8.0+21056+d98a086    9/11 
  Verifying        : libslirp-4.4.0-1.module+el8.8.0+21045+adcb6a64.x86   10/11 
  Verifying        : slirp4netns-1.2.0-2.module+el8.8.0+21045+adcb6a64.   11/11 

Installed:
  container-selinux-2:2.205.0-2.module+el8.8.0+21045+adcb6a64.noarch            
  containerd.io-1.6.21-3.1.el8.x86_64                                           
  docker-buildx-plugin-0.10.5-1.el8.x86_64                                      
  docker-ce-3:24.0.2-1.el8.x86_64                                               
  docker-ce-cli-1:24.0.2-1.el8.x86_64                                           
  docker-ce-rootless-extras-24.0.2-1.el8.x86_64                                 
  docker-compose-plugin-2.18.1-1.el8.x86_64                                     
  fuse-overlayfs-1.11-1.module+el8.8.0+21056+d98a0860.x86_64                    
  libcgroup-0.41-19.el8.x86_64                                                  
  libslirp-4.4.0-1.module+el8.8.0+21045+adcb6a64.x86_64                         
  slirp4netns-1.2.0-2.module+el8.8.0+21045+adcb6a64.x86_64                      

Complete!
[root@localhost ~]#
Enable and start the docker Service:
[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor pres>
   Active: active (running) since Wed 2023-05-31 03:42:38 EDT; 5s ago
     Docs: https://docs.docker.com
 Main PID: 44258 (dockerd)
    Tasks: 7
   Memory: 117.3M
   CGroup: /system.slice/docker.service
           └─44258 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/conta>

Feb 27 03:42:33 localhost.localdomain systemd[1]: Starting Docker Application C>
Feb 27 03:42:33 localhost.localdomain dockerd[44258]: time="2023-05-31T03:42:33>
Feb 27 03:42:33 localhost.localdomain dockerd[44258]: time="2023-05-31T03:42:33>
Feb 27 03:42:37 localhost.localdomain dockerd[44258]: time="2023-05-31T03:42:37>
Feb 27 03:42:37 localhost.localdomain dockerd[44258]: time="2023-05-31T03:42:37>
Feb 27 03:42:38 localhost.localdomain dockerd[44258]: time="2023-02-31T03:42:38>
Feb 27 03:42:38 localhost.localdomain dockerd[44258]: time="2023-02-31T03:42:38>
Feb 27 03:42:38 localhost.localdomain dockerd[44258]: time="2023-02-31T03:42:38>
Feb 27 03:42:38 localhost.localdomain dockerd[44258]: time="2023-02-31T03:42:38>
Feb 27 03:42:38 localhost.localdomain systemd[1]: Started Docker Application Co>
[root@localhost ~]#
thanks for reading :) 
 
regards, 
ZAHEER

Comments

Popular posts from this blog

Disable Firewall on Oracle Linux 8

Installation of Oracle Applications R12.1.1 on Linux and vmware

Enable Desktop on Oracle Solaris 11.4