2017-04-14 107 views
0

我正在嘗試爲Docker開源開發製作開發環境圖像,但我面臨以下錯誤。 我已經從他們的git頁面克隆了存儲庫並在centos上運行它。無法爲Docker開源開發製作開發環境圖像

我在一家公司工作,並在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. 

回答

0

很難調試這個沒有更多的細節。從您收到的消息看,它看起來像代理設置或apt源列表格式不正確。

0

當在代理之後進行構建時,請確保您設置了在環境變量中添加http。

ENV HTTP_PROXY ** HTTP://**your.company.com:8080

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