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 \
  1. Install
sudo yum install \
  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