清华镜像源地址:https://mirrors.tuna.tsinghua.edu.cn/
更改镜像源的时候:其实我们更改的是extras的目录文件。
使用清华镜像源的docker-ce源。主面上搜索docker-ce,docker-ce是社区版,ee是专业版。我们要安装的就是社区版docker。
wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
修改配置文件的docker-ce源的路径。(我们使用的是清华镜像docker-ce源)
所以把源路径修改清华源:https://mirrors.tuna.tsinghua.edu.cn/docker-ce/
:%s/https:\/\/download.docker.com/https:\/\/mirrors.tuna.tsinghua.edu.cn\/docker-ce/g
yum repolist # 更新本地repolist
yum –y install docker-ce
原文:https://www.cnblogs.com/yeyu1314/p/12912876.html