Windows 上的 Boot2docker 代理
Boot2docker proxy on Windows
我已经在 Windows 上安装了 boot2docker。我尝试在 https://github.com/boot2docker/boot2docker-cli/issues/230 的帮助下配置代理,但没有成功。
当我执行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
参见 "How do I get Docker to run on a Windows system behind a corporate firewall?"。
您需要设置:
在您的 cmd 会话中设置 HTTP_PROXY
、HTTPS_PROXY
和 NO_PROXY
,以便 boot2docker download
正常工作。
(export) http_proxy
, http_proxy
and no_proxy
in the /var/lib/boot2docker/profile
order for a 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 的解决方案对我有用。其他指南建议使用:
--engine-env HTTP_PROXY=...etc
在 docker-machine.exe 中,创建 start.sh 的部分,但这对我不起作用。在创建行之前添加 export HTTP_PROXY
行就可以了。
尝试使用 Docker 在 CMD windows 中创建,像这样(我正在使用 CNTLM,但它是相同的想法):
docker-machine create -d virtualbox
-engine-env HTTP_PROXY=[IP]:3128
-engine-env HTTPS_PROXY=[IP]:3128
default
一些对我帮助很大的参考资料:
我已经在 Windows 上安装了 boot2docker。我尝试在 https://github.com/boot2docker/boot2docker-cli/issues/230 的帮助下配置代理,但没有成功。
当我执行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
参见 "How do I get Docker to run on a Windows system behind a corporate firewall?"。
您需要设置:
在您的 cmd 会话中设置
HTTP_PROXY
、HTTPS_PROXY
和NO_PROXY
,以便boot2docker download
正常工作。(export)
http_proxy
,http_proxy
andno_proxy
in the/var/lib/boot2docker/profile
order for adocker 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 的解决方案对我有用。其他指南建议使用:
--engine-env HTTP_PROXY=...etc
在 docker-machine.exe 中,创建 start.sh 的部分,但这对我不起作用。在创建行之前添加 export HTTP_PROXY
行就可以了。
尝试使用 Docker 在 CMD windows 中创建,像这样(我正在使用 CNTLM,但它是相同的想法):
docker-machine create -d virtualbox
-engine-env HTTP_PROXY=[IP]:3128
-engine-env HTTPS_PROXY=[IP]:3128
default
一些对我帮助很大的参考资料: