Client.Timeout exceeded while awaiting headers
在拉取镜像的时候报错Client.Timeout exceeded while awaiting headers原因:延迟较大,网络连接出现问题解决办法:dotcloud官方页面内也有不同操作系统的教程这里贴出Linux下的解决方案:①curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m
文章共300字 · 阅读需要大约2分钟
一键AI生成摘要,助你高效阅读
问答
·
在拉取镜像的时候报错Client.Timeout exceeded while awaiting headers
原因:延迟较大,网络连接出现问题
解决办法:
dotcloud官方页面内也有不同操作系统的教程
这里贴出Linux下的解决方案:
① curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
该脚本可以将 --registry-mirror 加入到你的 Docker 配置文件 /etc/docker/daemon.json 中。适用于 Ubuntu14.04、Debian、CentOS6 、CentOS7、Fedora、Arch Linux、openSUSE Leap 42.1,其他版本可能有细微不同
② 上面的命令会在/etc/docker/daemon.json文件添加上如下配置
③ 加载配置文件、重启docker
$systemctl daemon-reload
$systemctl restart docker
④ 重新拉取镜像(成功)
更多推荐
已为社区贡献17条内容
所有评论(0)