我运行一个码头工人二元我建(以下此),当我做了docker pull,我得到这个错误。
docker pull
来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:proxyconnect tcp:tls:接收到长度超过20527的超大记录
我已经按此处所述设置了代理,并且pull可以使用默认守护程序和相同的代理设置正常工作。将DNS更改为8.8.8.8似乎没有帮助。
pull
ping registry-1.docker.io
导致100%的数据包丢失。
docker info 给这个
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
该错误的解决方法是什么?
您的Docker版本是什么?
使用Docker版本17.09.0-ce,构建afdb6d4,它对我有用,但是yum update获得Docker版本18.06.0-ce,构建0ffa825后,我遇到了同样的问题。
yum update
您能检查一下/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