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
sudo yum check-updatecurl -fsSL https://get.docker.com/ | shsudo usermod -aG docker $(whoami) # If you want to avoid typing sudo whenever you run the docker command, add your username to the docker groupsudo systemctl start docker # start docker after the installationsudo systemctl status docker # Check statussudo systemctl enable docker # Mak sure it starts at every server reboot
​