Client.Timeout exceeded while awaiting headers
生活随笔
收集整理的這篇文章主要介紹了
Client.Timeout exceeded while awaiting headers
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在拉取鏡像的時候報錯Client.Timeout exceeded while awaiting headers
原因:延遲較大,網(wǎng)絡連接出現(xiàn)問題
?
解決辦法:
dotcloud官方頁面內也有不同操作系統(tǒng)的教程
?
這里貼出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?
④?重新拉取鏡像(成功)
總結
以上是生活随笔為你收集整理的Client.Timeout exceeded while awaiting headers的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: scrapy-redis使用以及剖析
- 下一篇: Kotlin学习笔记-----函数的定义