Installing Docker in CentOS 7

Error while installing docker in CentOS7

Remove podman and buildah

If you face the above mentioned problem, then remove them first. Read here

The podman and buildah packages conflict with docker-ce. Remove them first:

sudo yum erase podman buildah

And you can then install docker-ce:

yum install docker-ce

Install Docker

sudo yum check-update
curl -fsSL | sh
sudo usermod -aG docker $(whoami) # If you want to avoid typing sudo whenever you run the docker command, add your username to the docker group
sudo systemctl start docker # start docker after the installation
sudo systemctl status docker # Check status
sudo systemctl enable docker # Mak sure it starts at every server reboot