docker pull 408错误记录
Docker配置国内源
配置docker的registry-mirror
sed -i "s|ExecStart=/usr/bin/dockerd|ExecStart=/usr/bin/dockerd --registry-mirror=https://registry.docker-cn.com/|g" /lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
#或者可以使用腾讯云地址:https:mirror.ccs.tencentyun.com
验证
docker info
确认Registry Mirrors的地址已经修改成功:
ERROR: 使用docker pull 语句,执行中报错:HTTP 408
Using default tag: latest
Error response from daemon: error parsing HTTP 408 response body: invalid character '<' looking for beginning of value: "<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n\n"
此时需要修改当前网卡的MTU为900
#临时修改:
ifconfig eth0 mtu 900
#永久修改(尝试设置,但是失败了...):
#vi /etc/network/interfaces
#【在最后增加内容: mtu 900 】...
【然后重启网卡】
/etc/init.d/networking restart
I can feel you forgetting me。。 有一种默契叫做我不理你,你就不理我