请知悉:本文最近一次更新为 2年 前,文中内容可能已经过时。

不多说,直接上root用户下执行的命令行,细节啥的自己去看文末的参考链接。

yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine -y
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo

重点,替换到清华的镜像:
把软件仓库地址替换为 TUNA:

sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
yum makecache fast
yum install docker -y

参考链接:
https://yeasy.gitbooks.io/docker_practice/content/install/centos.html
https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《国内CentOS7 安装 Docker CE 流程》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌