[英]Boot2docker proxy on Windows
I have installed boot2docker on Windows. 我在Windows上安装了boot2docker。 I've tried to configure the proxy with the help of https://github.com/boot2docker/boot2docker-cli/issues/230 , but it didn't work. 我试图在https://github.com/boot2docker/boot2docker-cli/issues/230的帮助下配置代理,但它没有用。
When I execute boot2docker download
, I get the following error: 当我执行boot2docker download
,我收到以下错误:
boot2docker download
Latest release for github.com/boot2docker/boot2docker is v1.6.0
Downloading boot2docker ISO image...
error in run: Failed to download ISO image: Get https://s3.amazonaws.com/github-cloud/releases/14930729/0573f322-e442-11e4-8500-b1bbe904b032.iso?response-content-disposition=attachment%3B%20filename%3Dboot2docker.iso&response-content-type=application/octet-stream&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1430303112&Signature=oTercMri%2FkqD9cbA315JhNHzehk%3D:
Proxy Authentication Required
See " How do I get Docker to run on a Windows system behind a corporate firewall? " . 请参阅“ 如何让Docker在公司防火墙后面的Windows系统上运行? ” 。
You need to set up: 你需要设置:
set HTTP_PROXY
, HTTPS_PROXY
and NO_PROXY
in your cmd session, in order for boot2docker download
to work. 在cmd会话中设置HTTP_PROXY
, HTTPS_PROXY
和NO_PROXY
,以便boot2docker download
工作。
(export) http_proxy
, http_proxy
and no_proxy
in the /var/lib/boot2docker/profile
in order for a docker search
(for example) to work. (导出) /var/lib/boot2docker/profile
中的http_proxy
, http_proxy
和no_proxy
,以便/var/lib/boot2docker/profile
docker search
(例如)工作。
export http_proxy=http://<user>:<pwd>@proxy.company:80 export https_proxy=http://<user>:<pwd>@proxy.company:80 export no_proxy=.company,.sock,localhost,127.0.0.1,::1,192.168.59.103
VonC's solution worked for me. VonC的解决方案对我有用。 Other guides suggested using: 其他指南建议使用:
--engine-env HTTP_PROXY=...etc
In the docker-machine.exe, create a section of start.sh , but that didn't work for me. 在docker-machine.exe中,创建一个start.sh部分,但这对我不起作用。 Adding the export HTTP_PROXY
lines before the create line did the trick. 在创建行之前添加export HTTP_PROXY
行就可以了。
Try to use Docker create in a CMD windows like this (I'm using CNTLM, but it is the same idea): 尝试在这样的CMD窗口中使用Docker创建(我使用的是CNTLM,但它的想法是一样的):
docker-machine create -d virtualbox
-engine-env HTTP_PROXY=[IP]:3128
-engine-env HTTPS_PROXY=[IP]:3128
default
Some references that helped me a lot: 一些参考资料帮助了我很多:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.