从docker中提取图像时出现EOF错误

问题描述 投票:1回答:1

我收到了以下错误

docker pull openjdk

Using default tag: latest

Pulling repository docker.io/library/openjdk

Error while pulling image: Get https://index.docker.io/v1/repositories/library/openjdk/images: EOF

我分别在/etc/systemd/system/docker.service.d/http-proxy.conf和/etc/systemd/system/docker.service.d/https-proxy.conf中设置了HTTP_PROXY和HTTPS_PROXY。

我仍然无法从码头中心拉出任何图像。

以下是docker版本输出客户端:版本:1.12.6 API版本:1.24 Go版本:go1.6.4 Git commit:78d1802 Built:Tue Jan 10 20:20:01 2017 OS / Arch:linux / amd64

服务器:版本:1.12.6 API版本:1.24 Go版本:go1.6.4 Git commit:78d1802 Built:Tue Jan 10 20:20:01 OS OS / Arch:linux / amd64

docker dockerfile docker-registry dockerhub docker-proxy
1个回答
0
投票

这是我的设置:

etc/systemd/system/docker.service.d
more http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://user:[email protected]:8080/" "HTTPS_PROXY=http://user:[email protected]:8080/"  "NO_PROXY=localhost,127.0.0.1,.mycompany.com"

请注意,像HTTP_PROXY这样的HTTPS_PROXY都使用http URL作为代理。并确保(使用NO_PROXY)任何内部URL不使用代理。

© www.soinside.com 2019 - 2024. All rights reserved.