

To verify whether docker ce engine has been setup correctly or not, try to spin up a “hello-world” container using below docker command, ~]# docker run hello-worldĪs we can see the informational message in above output which confirms docker engine is setup correctly on CentOS 8 / RHEL 8 Server.

~]# Step:3) Verify and test Docker CE Engine Run the following command to verify installed docker version ~]# docker -versionĭocker version 19.03.13, build 4484c46d9d Now, use beneath dnf command to install latest version of docker, ~]# dnf install docker-ce -nobest -yĪfter the installation of docker, start and enable its service using the following systemctl commands ~]# systemctl start docker Once the docker ce repo has been configured successfully then run following command to verify which version of docker is available for installation ~]# dnf list docker-ceĭocker CE Stable - x86_64 1.7 kB/s | 3.8 kB 00:02ĭocker-ce.x86_64 3:19.03.13-3.el8 docker-ce-stable ~]# dnf config-manager -add-repo= Step:2) Install Docker CE using dnf command Note : Run below dnf command to apply all the available updates and then reboot # dnf update -y reboot Installation Steps of Docker CE on CentOS 8/RHEL 8 Server Step:1) Enable Docker CE RepositoryĪs we said above, docker packages are not available anymore on CentOS 8 or RHEL 8 package repositories, so run following dnf command to enable Docker CE package repository. In this guide we will learn how to install Docker CE (Community Edition) on CentOS 8 or RHEL 8 Server.
