首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法为Docker开源开发创建开发环境镜像

无法为Docker开源开发创建开发环境镜像
EN

Stack Overflow用户
提问于 2017-04-14 23:59:15
回答 2查看 126关注 0票数 0

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

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

这就是我得到的错误-

代码语言:javascript
运行
复制
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.
EN

回答 2

Stack Overflow用户

发布于 2017-04-15 00:13:51

在没有更多细节的情况下很难对其进行调试。从你收到的消息来看,代理设置或者apt资源列表的格式不正确。

票数 0
EN

Stack Overflow用户

发布于 2017-04-15 00:16:02

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

环境http_proxy **http://**your.company.com:8080

环境https_proxy **https://**your.company.com:8080

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43415081

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档