1.卸载Dockeryum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine2.安装需要的安装包yum install -y yum-utils3.设置镜像的仓库地址yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo4.更新yum索引yum makecache fast5.安装dockeryum install docker-ce docker-ce-cli containerd.io6.运行systemctl start docker7.安装HelloWorld进行测试docker run hello-world

配置阿里云镜像加速,需要注册一个阿里云账号,找到容器镜像服务。
根据教程配置加速器,配置完成之后下载镜像速度会更快
