View version
https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7/x86_64/stable/Packages/
In https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/ in the docker-cd.repo wget address to the next directory yum.repo
cd /etc/yum.repos.d
wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
Replace https://download.docker.com to https://mirrors.tuna.tsinghua.edu.cn/docker-ce
vim docker-ce.repo
:%s@https://download.docker.com@https://mirrors.tuna.tsinghua.edu.cn/docker-ce@
yum install -y docker-ce