tutorials questions & answers
jessy.vanbaal@vpsserver.com by Pinkman

Installation of Docker on CentOS 8

  • docker
  • centos
  • CentOS 8


Start by running CentOS updates

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

First we have to install the required packages

  • sudo yum install -y yum-utils device-mapper-persistent-data lvm2

    Now we have to install the Docker repository

  • sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

    Now we are able to install Docker

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

Starting Docker

  • sudo systemctl start docker

    Check if Docker is working

  • 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.

comments (1)

leave comment

Please choose login or register to comment in this thread.

Start now for as low as $2,99 a month!

  • 8 Characters2
  • 1 Uppercase Atleast
  • 1 Number Atleast