Docker Installation Error on Windows behind Firewall

99封情书 提交于 2020-01-22 15:33:27

问题


I'm trying to install Docker on a Windows computer but I get this message:

Running pre-create checks...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
Error with pre-create check: "Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.252.124:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
Looks like something went wrong in step 'Checking if machine default exists'...
Press any key to continue...

Any suggestions on how to resolve this?


回答1:


You may behind a firewall. If so, you will need to configure an http proxy.

According to https://github.com/boot2docker/boot2docker-cli/issues/230 you can do this one of a couple of ways:

(1) Edit start.sh and add the following before boot2docker.exe is called

export HTTP_PROXY=<proxy>
export HTTPS_PROXY=<proxy>

(2) Add HTTP_PROXY and HTTPS_PROXY (and their values) to your System Variables or User Variables in your Windows config.

The proxy value should be of the form http://hostname:port




回答2:


Editing the start.sh file may come up with other error things.

Instead that, just put your boot2docker.iso in below location as.

c:\user\USERNAME\\.docker\machine\cache

and restart your Docker terminal.



来源:https://stackoverflow.com/questions/37620347/docker-installation-error-on-windows-behind-firewall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!