安装docker后,为了加速拉取镜像,需配置国内源。在这里运用的是阿里源。
https://www.aliyun.com/ 在控制台中获取到阿里源的镜像加速器链接后
在vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://*******.mirror.aliyuncs.com"]
}
然后保存,执行如下命令
systemctl daemon-reload
systemctl restart docker
(可参考https://blog.csdn.net/li1325169021/article/details/90782846)
现在再执行拉取镜像,速度会快了许多
docker pull centos7