【问题标题】:Ubuntu, Docker - proxyconnect tcp: tls: oversized record received with length 20527Ubuntu,Docker-proxyconnect tcp:tls:收到长度为 20527 的超大记录
【发布时间】:2018-06-06 09:52:47
【问题描述】:

我正在运行我构建的 docker 二进制文件(在 this 之后),当我执行 docker pull 时,我收到此错误。

来自守护进程的错误响应:Get https://registry-1.docker.io/v2/: proxyconnect tcp: tls: oversized record received with length 20527

我已经按照提到的here 设置了代理,pull 在默认守护程序和相同的代理设置下工作正常。将 DNS 更改为 8.8.8.8 似乎没有帮助。

ping registry-1.docker.io

导致 100% 丢包。

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

这个错误的修复方法是什么?

【问题讨论】:

    标签: ubuntu docker tcp daemon tls1.2


    【解决方案1】:

    你的 Docker 版本是多少?

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

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

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

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

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

    【讨论】:

      猜你喜欢
      • 2019-01-05
      • 1970-01-01
      • 1970-01-01
      • 2016-04-13
      • 2016-07-04
      • 2012-04-07
      • 2012-02-01
      • 2013-09-09
      • 2011-02-02
      相关资源
      最近更新 更多