Install Docker Engine (CE) on RHEL 8.x

By | November 23, 2020

Docker Engine is an open source containerization technology for building and containerizing your applications. Docker Engine acts as a client-server application with:

  • A server with a long-running daemon process dockerd.
  • APIs which specify interfaces that programs can use to talk to and instruct the Docker daemon.
  • A command line interface (CLI) client docker.

Credit to Docker.

This below is the simple way to install Docker Engine Community Edition on Red Hat Enterprise Linux 8.x server.

1. Demonstration LAB info:

  • OS: Red Hat Enterprise Linux 8.x x86_64
  • Hostname: RH8LXCSTD
  • IP:
  • CPU: 2 Cores
  • RAM: 2 GB
  • Disk: 30 GB

2. Remove existing old Docker version

sudo dnf remove \
docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine \
podman \

sudo rm -rf /etc/yum.repos.d/docker-ce*.repo

3. Configure repositories requirement

  • Add Docker CE official repository
sudo dnf install -y yum-utils
sudo yum-config-manager --add-repo

4. Install Docker Engine CE (online) latest stable version. Note: we must have internet connection!!!

sudo dnf install docker-ce docker-ce-cli

5. Enable and start Docker Engine service

systemctl enable docker --now

6. Verify Docker CE version and Info

docker --verion
docker info

7. Install Docker Compose. Check docker-compose version here

sudo curl -L -k "${compose_ver}/docker-compose-linux-$(uname -m)" -o /usr/bin/docker-compose

sudo chmod +x /usr/bin/docker-compose
docker-compose --version

8. Verify that Docker Engine is installed correctly by running the “hello-world” image:

sudo docker run hello-world


Leave a Reply

Your email address will not be published. Required fields are marked *