首页 文章

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

提问于
浏览
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 2017 OS / Arch:linux / amd64

1 回答

  • 0

    这是我的设置:

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

    请注意, HTTP_PROXYHTTPS_PROXY 都使用http URL作为代理 . 并确保(使用 NO_PROXY )任何内部URL都不使用代理 .

相关问题