CentOS8 Failed to start docker.service: Unit docker.service not found [How to Solve]

The reason for this problem is the podman in CentOS 8. Podman is a docker like software preinstalled in CentOS 8, so you don’t need to uninstall it directly
solution:

dnf remove podman

Then reinstall docker

sudo yum install -y yum-utils  device-mapper-persistent-data  lvm2
 
sudo yum-config-manager  --add-repo   https://download.docker.com/linux/centos/docker-ce.repo
 
sudo yum install -y docker-ce docker-ce-cli containerd.io

Set startup and self startup

sudo systemctl enable docker

Oh!

Similar Posts: