Docker, Linux: Install Docker on CentOS8

Docker installation on CentOS8:

1. Update packages:

sudo yum update

2. Install yum-utils:

sudo yum install -y yum-utils

3. Add Docker repository:

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

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

5. Install docker-ce and docker-ce-cli:

sudo yum install docker-ce docker-ce-cli

6. Verify that the GPG key fingerprint matches 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35

7. Start Docker:

sudo systemctl start docker

References: