How to install Docker Community Edition on CentOS 8.1

Docker Engine Supports CentOS 8.1 to run the container on it . Docker is available in two version which is Community (CE) and Enterprise Edition

Installtion Steps :- 

Enable Docker CE Repository

Docker Package are not avilable on CentOS package Respositories , run the dnf command to enable docker CE package repository

[root@localhost admin]# dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Install Docker CE using dnf Command 

[root@localhost admin]# dnf list docker-ce

CentOS-8 – AppStream                                                                                     1.1 MB/s | 6.8 MB     00:06

CentOS-8 – Base                                                                                          1.2 MB/s | 6.0 MB     00:04

CentOS-8 – Extras                                                                                        3.4 kB/s | 5.5 kB     00:01

Docker CE Stable – x86_64                                                                                 13 kB/s |  22 kB     00:01

Available Packages

docker-ce.x86_64                                             3:19.03.8-3.el7                                             docker-ce-stable

Remove podman Manpage to avoid conflicts with file from Docker Package

click here

[root@localhost admin]# sudo yum remove -y podman-manpages

Run DNF command to install latest version of docker

[root@localhost admin]# dnf install docker-ce --nobest -y

once the installtion is completed start and enable service

[root@localhost admin]#systemctl start docker
[root@localhost admin]#systemctl enable docker

verfily and test docker CE Engine

[root@docker-ce ~]# docker run hello-world

Command Output 
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:8e3114318a995a1ee497790535e7b88365222a21771ae7e53687ad76563e8e76
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/

visit also

https://www.linuxtechi.com/install-docker-ce-centos-8-rhel-8/ 

https://nishantpanchal.wordpress.com/2020/04/16/docker-conflicts-with-file-from-package-podman-manpages-on-centos-linux-release-8-1-1911-core/ 

Many Thanks for your support !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s