_____ ___ ___ _____     ___     ___ ___   
 |     |  _|  _| __  |_ _|   |_ _|   |_  |  
 |  |  |  _|  _| __ -| | | | |_'_| | |_| |_ 
 |_____|_| |_| |_____|_  |___|_,_|___|_____|
                     |___|                  

How to setup docker on CentOS 8

  1. uninstall any old versions of docker-related packages: sudo yum remove -y docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
  2. install necessary utils: sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
  3. add docker-ce repo to yum config: sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  4. install docker (c)ommunity (e)dition:

    sudo yum install -y docker-ce
  5. ensure service runs after rebooting:

    sudo system ctl start docker \
    && sudo system ctl enable docker 
  6. allow user to interact with docker:

    sudo usermod -aG docker <user>
  7. log out & back in