第一步:yum install yum-utils
第二步:yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
或者阿里的镜像源
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
第三步:yum list docker-ce --showduplicates | sort -r
第四步:yum install docker-ce-26.1.3
第五步:systemctl start docker