You are here:

How to Install Docker on CentOS 8

Installation

Commence by initiating updates on CentOS

  1. Yum update
  2. Confirm the download with Y
  3. Wait until the update is finished.

To begin, install the required packages

  • sudo yum install -y yum-utils device-mapper-persistent-data lvm2 Next, install the Docker repository

  • sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Now,let’s install Docker

  • sudo yum install docker-ce docker-ce-cli containerd.io Docker. Docker has been installed.

Starting Docker

  • sudo systemctl start docker Verify the functionality of Docker.

  • sudo docker run hello-world If you get the following message, your Docker installation is working:

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

Was this article helpful?
Dislike 0