• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Docker-CE on Oracle Linux 8.6

  • 00:34 cat /etc/os-release
  • 00:50 yum install epel-release
  • 01:10 dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
  • 01:20 dnf list docker-ce
  • 01:52 dnf install docker-ce --nobest -y --allowerasing
  • 02:25 systemctl enable docker
  • 02:34 systemctl start docker
  • 02:44 systemctl status docker
  • 02:53 docker --version
  • 03:08 docker run hello-world
  • 03:32 curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  • 03:45 chmod +x /usr/local/bin/docker-compose
  • 03:51 docker-compose --version
{{postValue.id}}

To Install Docker-CE on Oracle Linux 8.6

Introduction:

Docker is a daemon-based container engine that allows us to deploy applications within containers. Docker is a set of the platform as a service products that use OS-level virtualization to deliver software in containers. In this guide we will learn how to install Docker CE (Community Edition) on Oracle Linux 8.5.

Installation Steps:

Step 1: Check the oracle Linux version by using the below command

[root@linuxhelp]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.6"

Step 2: Install epel-release by using the below command

[root@localhost linuxhelp]# yum install epel-release
Last metadata expiration check: 0:06:22 ago on Fri 22 Jul 2022 06:52:28 PM IST.
Dependencies resolved.
==============================================================================================
 Package                      Arch        Version                Repository              Size
==============================================================================================
Installing:
 oracle-epel-release-el8      x86_64      1.0-5.el8              ol8_baseos_latest       15 k
Installing dependencies:
 yum-utils                    noarch      4.0.21-3.0.1.el8       ol8_baseos_latest       72 k

Total download size: 88 k
Installed size: 41 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): oracle-epel-release-el8-1.0-5.el8.x86_64.rpm           136 kB/s |  15 kB     00:00    
(2/2): yum-utils-4.0.21-3.0.1.el8.noarch.rpm                  558 kB/s |  72 kB     00:00    
Installed:
  oracle-epel-release-el8-1.0-5.el8.x86_64          yum-utils-4.0.21-3.0.1.el8.noarch         
Complete!

Step 3: Run the following DNF command to enable Docker CE package repository by using the below command.

[root@linuxhelp]#  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

Step 4: Once the Docker CE repo has been configured successfully then run following command to verify which version of docker is available for installation

[root@ linuxhelp]# dnf list docker-ce
Docker CE Stable - x86_64                                     199 kB/s |  26 kB     00:00    
Available Packages
docker-ce.x86_64                       3:20.10.17-3.el8                       docker-ce-stable

Step 5: Now, use DNF command to install latest version of Docker by using the below command.

[root@ linuxhelp]# dnf install docker-ce --nobest –y

Last metadata expiration check: 0:00:17 ago on Fri 22 Jul 2022 06:59:53 PM IST.
Error: 
 Problem: problem with installed package podman-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.x86_64
  - package podman-1.4.2-6.0.1.module+el8.1.0+5460+5d763c32.x86_64 requires runc, but none of the providers can be installed
 (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

If this error occurred use the following command to install Docker

[root@ linuxhelp]# dnf install docker-ce --nobest -y --allowerasing
Last metadata expiration check: 0:00:33 ago on Fri 22 Jul 2022 06:59:53 PM IST.
Dependencies resolved.
==============================================================================================
 Package            Arch   Version                                    Repository         Size
==============================================================================================
Installing:
 docker-ce          x86_64 3:20.10.17-3.el8                           docker-ce-stable   22 M
Installing dependencies:
 containerd.io      x86_64 1.6.6-3.1.el8                              docker-ce-stable   33 M
     replacing  runc.x86_64 1.0.2-1.module+el8.5.0+20416+d687fed7
 crun               x86_64 1.4.4-1.module+el8.6.0+20665+a3b29bef      ol8_appstream     209 k
 docker-ce-cli      x86_64 1:20.10.17-3.el8                           docker-ce-stable   29 M

 docker-ce-rootless-extras
                    x86_64 20.10.17-3.el8                             docker-ce-stable  4.7 M
 libcgroup          x86_64 0.41-19.el8                                ol8_baseos_latest  70 k

Downgraded:
  containers-common-1:1.2.2-10.0.1.module+el8.4.0+20195+0a4a4953.x86_64                       
Installed:
  containerd.io-1.6.6-3.1.el8.x86_64                                                          
  crun-1.4.4-1.module+el8.6.0+20665+a3b29bef.x86_64                                           
  docker-ce-3:20.10.17-3.el8.x86_64                                                           
  docker-ce-cli-1:20.10.17-3.el8.x86_64                                                       
  docker-ce-rootless-extras-20.10.17-3.el8.x86_64                                             
  docker-scan-plugin-0.17.0-3.el8.x86_64                                                      
  libcgroup-0.41-19.el8.x86_64                                                                
Removed:
  buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64                                   
  cockpit-podman-33-1.module+el8.5.0+20416+d687fed7.noarch                                    
  podman-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.x86_64                                     
  podman-catatonit-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.x86_64                           
Complete!

Step 6: Enable, Start and Check the Status of Docker by using the below command

[root@ linuxhelp]# systemctl enable docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.

[root@linuxhelp]# systemctl start docker

[root@linuxhelp]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disab>
   Active: active (running) since Wed 2022-07-27 11:18:23 IST; 8s ago
     Docs: https://docs.docker.com

Step 7: To Check the Docker Version use the below command

[root@ linuxhelp]# docker --version
Docker version 20.10.17, build 100c701

Step 8: To verify whether Docker CE engine has been setup correctly or not, try to spin up a “hello-world” container using below docker command.

[root@ linuxhelp]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete 
Digest: sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Step 9: As we know that docker compose is used to link multiple containers using a single command. In other words, Docker Compose is useful where we need to launch multiple containers and these containers depends on each other. Examples like launching LAMP/ LEMP applications (WordPress & Joomla etc) insider containers.

Run the below commands to install docker compose

[root@ linuxhelp]#  curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 11.6M  100 11.6M    0     0  2600k      0  0:00:04  0:00:04 --:--:-- 2958k

Step 10: Set the executable permission to docker-compose binary by using the below command

[root@localhost linuxhelp]# chmod +x /usr/local/bin/docker-compose

Step 11: Verify the docker compose version by running the below command.

[root@linuxhelp]# docker-compose --version
docker-compose version 1.27.4, build 40524192

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Docker-CE on Oracle Linux 8.5. Your feedback is much welcome.

Tags:
matthew
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Can Docker image run on different OS?

A

Yes, it runs both Linux and Windows programs and executables in Docker containers.

Q

How many containers can Docker run?

A

Docker can Run Eight Containers per Host.

Q

What are the disadvantages of Docker?

A

Graphical applications don't work well. Not all applications benefit from containers.

Q

What is the difference between a Docker container and an image?

A

Images can exist without containers, whereas a container needs to run an image to exist.

Q

Why is Docker better than VM?

A

Docker containers are process-isolated and don't require a hardware hypervisor. This means Docker containers are much smaller and require far fewer resources than a VM. Docker is fast.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.