yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce
systemctl enable docker
systemctl start docker
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
> {
> "registry-mirrors": ["https://??????.mirror.aliyuncs.com"] //https://cr.console.aliyun.com/cn-hangzhou/instances->镜像工具->镜像加速器可找到
> }
> EOF
systemctl daemon-reload
systemctl restart docker



