Remove conflict packages with Docker first
dnf -y remove podman runc
install repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/docker-ce.repo
dnf --enablerepo=docker-ce-stable -y install docker-ce
Autoload docker
systemctl enable --now docker
Check it
rpm -q docker-ce
docker version
Top comments (0)