https://docs.docker.com/engine/install/centos/
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
# 更新 yum sudo yum install -y yum-utils # 将 yum 源设置成阿里云 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
yum list docker-ce --showduplicates | sort -r
# 启动 Docker sudo systemctl start docker # 查看 Docker 运行状态 sudo systemctl status docker
sudo docker run hello-world
具体位置在容器镜像服务的镜像工具下的镜像加速器中,详细安装文档在页面上,无脑跟着走即可!