Docker 不下载映像(注册表连接问题)



我在官方教程中安装了docker:https://docs.docker.com/engine/installation/linux/ubuntulinux/

我的连接问题:

当我执行docker run hello-world时,我得到以下输出:

Unable to find image 'hello-world:latest' locally

然后docker等待7-8分钟,并输出:

Error parsing HTTP response: invalid character '<' looking for beginning of value: "408 Request Time-out Your browser didn't send a complete request in time"

使用docker login登录dockerhub也不起作用。当我输入错误的用户数据时,我得到:

Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password

但当我输入正确的数据时,我会得到:

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

当我从消息(curl https://registry-1.docker.io/v2/)中卷曲URL时,我得到

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

Docker和Ubuntu版本:

Docker version 1.11.0, build 4dc5990
Linux jo-desktop 4.2.0-34-generic #39~14.04.1-Ubuntu SMP Fri Mar 11 11:38:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

我已经检查过的内容:

a) sudo ufw status输出Status: inactive

b) 这是一个家庭网络,所有设备都连接到DSL路由器。Docker在连接到此路由器的其他设备上工作

c) Docker在一个虚拟机上也有同样的连接问题,这个虚拟机的主机是我正在工作的ubuntu。所以这似乎是我正在使用的ubuntu的网络问题

d) 其他人也有我的问题(例如。https://github.com/docker/docker/issues/20628)。所以我把eth0和docker的MTU改为1500。它不会改变任何事情。

如何找到问题的想法

有人有想法吗?我还可以尝试找出什么,哪个组件阻止了与docker注册表的正确连接?

解决了问题:

我不得不将网络接口的MTU设置为900。

最新更新