Ubuntu、Docker - proxyconnect tcp: tls: 收到长度为 20527 的超大记录 [英] Ubuntu, Docker - proxyconnect tcp: tls: oversized record received with length 20527

查看:24
本文介绍了Ubuntu、Docker - proxyconnect tcp: tls: 收到长度为 20527 的超大记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行我构建的 docker 二进制文件(遵循 this)以及何时我做了一个 docker pull,我得到这个错误.

I am running a docker binary I built (following this) and when I do a docker pull, I get this error.

来自守护进程的错误响应:获取https://registry-1.docker.io/v2/: proxyconnect tcp: tls: 收到长度为 20527 的超大记录

Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: tls: oversized record received with length 20527

我已经按照此处设置了代理,并且pull 在默认守护进程和相同的代理设置下工作正常.将 DNS 更改为 8.8.8.8 似乎没有帮助.

I have set the proxy as mentioned here, and the pull works fine with the default daemon and the same proxy settings. Changing DNS to 8.8.8.8 doesn't seem to help.

ping registry-1.docker.io

导致 100% 丢包.

results in 100% packet loss.

docker info 给出这个

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: dev
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa (expected: fec3683)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.13.0-43-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.853GiB
Name: bhavana-docker
ID: UKZT:U4LR:PBOV:GLXP:XXUP:MZ74:WXWL:3RT7:MOG5:YGMC:HAFI:7PYM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
HTTP Proxy: <suppressed>
HTTPS Proxy: <suppressed>
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 registry-1.docker.io
 127.0.0.0/8
Live Restore Enabled: false

此错误的修复方法是什么?

What is the fix for this error?

推荐答案

你的 Docker 版本是什么?

What is your Docker version?

使用 Docker 版本 17.09.0-ce,构建 afdb6d4,它对我有用,但是在 yum update 获得 Docker 版本 18.06.0-ce,构建 0ffa825 后,我遇到了同样的问题.

With Docker version 17.09.0-ce, build afdb6d4, it was working for me, but after yum update to get Docker version 18.06.0-ce, build 0ffa825, I had the same problem.

你能检查一下你的/etc/systemd/system/docker.service.d/https-proxy.conf 吗?我想你是这样配置的:

Could you please check your /etc/systemd/system/docker.service.d/https-proxy.conf ? I think you have configured like this :

HTTPS_PROXY=https://user:pwd@proxy:port

但是现在,尝试使用 http 协议而不是 https 协议来配置 HTTPS_PROXY :

But now, try to configure HTTPS_PROXY with http protocol instead of https protocol :

HTTPS_PROXY=http://user:pwd@proxy:port

这篇关于Ubuntu、Docker - proxyconnect tcp: tls: 收到长度为 20527 的超大记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆