docker this

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

Guess you like

Origin www.cnblogs.com/Leaders543/p/12096215.html