本文介绍了Docker错误:HTTP 408响应正文:无效字符'<'寻找价值的开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我去 docker pull hello-world 时,出现以下错误消息:

When I go docker pull hello-world I get the below error message:

来自守护程序的错误响应:错误解析HTTP 408响应正文:无效字符'<'寻找值的开头:< html>< body>< h1> 408请求超时< / h1> n您的浏览器未及时发送完整的请求。\n< / body>< / html> \n\n

已安装的Docker版本:

Installed Docker version:

Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:47:50 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:47:50 2016
 OS/Arch:      linux/amd64

使用以下方式安装$ c> curl -fsSL https://get.docker.com/ | sh

Installed using: curl -fsSL https://get.docker.com/ | sh

我已确保网络存在并且可以访问其他站点。请帮忙

I have ensured that network exists and I can reach other sites. Please help

更新1:问题不能是设置MTU,因为我可以将Docker集线器中的映像拉回同一台机器上几天。

Update 1: The issue cannot be of setting MTU because I could pull the images from Docker hub a few days back on the same machine.

该问题也不可能是HTTP_PROXY,因为我在家庭网络中

The issue cannot be of HTTP_PROXY either because I am in my home network

推荐答案

错误消息几乎没有误导性。问题不在于字符无效,而是网络配置错误。我有一个LAN接口和一个WLAN接口。

The error message is little misleading. The problem was not that there was invalid character, but the network was misconfigured. I had one LAN interface and one WLAN interface.

LAN接口连接到路由器A,该路由器将请求转发到连接到Internet的路由器B。当WLAN接口直接连接到路由器B时,我忘记了删除WLAN配置。

LAN interface connects to a router A which forward requests to router B which was connected to internet. While the WLAN interface was directly connected to router B. I forgot to remove the WLAN configuration.

一旦我确保卸下WLAN接口,一切都会顺利进行。

Once I ensured the WLAN interface is removed, things worked smoothly.

总之:确保DNS解析有效并且MTU设置正确

In short: Ensured DNS resolution works and that MTU is set right

这篇关于Docker错误:HTTP 408响应正文:无效字符'&lt;'寻找价值的开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 12:47