我在正式教程中安装了对接程序:https://docs.docker.com/engine/installation/linux/ubuntulinux/
我的连接问题:
当我执行docker run hello-world
时,我得到以下输出:
Unable to find image 'hello-world:latest' locally
然后码头等待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和码头的MTU改为1500。它不会改变任何事情。
关于如何发现问题的想法?
有人有什么想法,我还可以尝试找出哪些组件阻止与码头注册中心的正确连接?
发布于 2016-04-17 21:44:21
解决了问题:
我不得不将我的网络接口的MTU设置为900。
https://stackoverflow.com/questions/36663223
复制相似问题