【问题标题】:Docker timeout while fetching image on Debian host在 Debian 主机上获取图像时 Docker 超时
【发布时间】:2015-01-31 22:10:00
【问题描述】:

我在 Debian 上运行 docker。从今天开始它运行完美,但今天我这台机器出现了严重的连接错误。 我也尝试在我的 boot2docker 机器上提取图像并且它可以工作,但是在 debian 服务器上它挂起。

$ uname -a

Linux hostname.tld 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt2-1~bpo70+1 (2014-12-08) x86_64 GNU/Linux

$ sudo docker version

Client version: 1.4.1 Client API version: 1.16 Go version (client): go1.3.3 Git commit (client): 5bc2ff8 OS/Arch (client): linux/amd64 Server version: 1.4.1 Server API version: 1.16 Go version (server): go1.3.3 Git commit (server): 5bc2ff8

$ docker pull node:latest
Pulling repository node

FATA[0143] Get https://index.docker.io/v1/repositories/library/node/images: read tcp 162.242.195.84:443: i/o timeout 

我不知道为什么我今天有超时。请帮我找出问题所在。

这是日志:

time="2015-01-31T23:09:21+01:00" level="info" msg="POST /v1.16/images/create?fromImage=node%3Alatest" 
time="2015-01-31T23:09:21+01:00" level="info" msg="+job pull(node, latest)" 
time="2015-01-31T23:09:21+01:00" level="info" msg="+job trust_update_base()" 
time="2015-01-31T23:09:21+01:00" level="info" msg="-job trust_update_base() = OK (0)" 
time="2015-01-31T23:10:21+01:00" level="error" msg="Error from V2 registry: Get https://registry-1.docker.io/v2/manifest/library/node/latest: read tcp 162.242.195.84:443: i/o timeout" 
time="2015-01-31T23:11:22+01:00" level="error" msg="Get https://registry-1.docker.io/v1/repositories/library/node/tags: read tcp 162.242.195.84:443: i/o timeout" 
Get https://registry-1.docker.io/v1/repositories/library/node/tags: read tcp 162.242.195.84:443: i/o timeout
time="2015-01-31T23:11:22+01:00" level="info" msg="-job pull(node, latest) = ERR (1)"

【问题讨论】:

  • 发现了什么?

标签: debian docker


【解决方案1】:

我通过在我的配置中添加一个公共 http 代理解决了这个问题。

【讨论】:

    猜你喜欢
    • 2015-08-06
    • 1970-01-01
    • 2016-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-17
    • 2020-12-18
    相关资源
    最近更新 更多