Installation

Install Docker on CentOS8

  1. Update packages:
sudo yum update
  1. Install yum-utils:
sudo yum install -y yum-utils
  1. Add docker-ce repository:
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
  1. Install containerd.io:
sudo yum install \
    https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
  1. Install docker-ce and docker-ce-cli:
sudo yum install docker-ce docker-ce-cli
  1. Verify that the GPG key fingerprint matches 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35

  2. Start Docker:

sudo systemctl start docker

References: