【问题标题】:Unable to Make a development environment image for Docker opensource development无法为 Docker 开源开发制作开发环境镜像
【发布时间】:2017-09-10 22:08:41
【问题描述】:

我正在尝试为 Docker 开源开发制作开发环境映像,但遇到以下错误。 我已经从他们的 git 页面克隆了存储库并在 centos 上运行它。

我在一家公司工作,并在 Dockerfile 中将代理设置为环境变量。

这是我得到的错误 -

Ign http://deb.debian.org jessie InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://deb.debian.org jessie-updates InRelease
Err http://deb.debian.org jessie Release.gpg
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Err http://ppa.launchpad.net trusty Release.gpg
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Ign http://security.debian.org jessie/updates InRelease
Err http://deb.debian.org jessie-updates Release.gpg
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Err http://security.debian.org jessie/updates Release.gpg
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Ign http://ppa.launchpad.net trusty Release
Ign http://security.debian.org jessie/updates Release
Err http://ppa.launchpad.net trusty/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages

Ign http://deb.debian.org jessie Release
Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages

Ign http://deb.debian.org jessie-updates Release
Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://ppa.launchpad.net trusty/main amd64 Packages
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Err http://security.debian.org jessie/updates/main amd64 Packages
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Err http://deb.debian.org jessie/main amd64 Packages
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
Err http://deb.debian.org jessie-updates/main amd64 Packages
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/Release.gpg  
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://ppa.launchpad.net/zfs-native/stable/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/Release.gpg  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://ppa.launchpad.net/zfs-native/stable/ubuntu/dists/trusty/main/binary-amd64/Packages  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22: Invalid argument)

E: Some index files failed to download. They have been ignored, or old ones used instead.

【问题讨论】:

    标签: docker makefile build docker-build


    【解决方案1】:

    没有更多细节很难调试。从您收到的消息看来,代理设置或 apt 源列表格式不正确。

    【讨论】:

      【解决方案2】:

      在代理后面进行构建时,请确保在环境变量中设置添加 http。

      ENV http_proxy **http://**your.company.com:8080

      ENV https_proxy **https://**your.company.com:8080

      【讨论】:

        猜你喜欢
        • 2022-09-25
        • 1970-01-01
        • 2016-11-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-06-23
        相关资源
        最近更新 更多