无法在docker中创build机器

我刚刚在我的Windows 7机器上安装了docker。 当我启动Docker QuickStart时,在创build机器时出现以下错误:

Creating machine... (default) Unable to get the latest Boot2Docker ISO release version: Get https:/ /api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.2 52.124:443: connectex: A connection attempt failed because the connected party d id not properly respond after a period of time, or established connection failed because connected host has failed to respond. (default) Copying C:\Users\robot\.docker\machine\cache\boot2docker.iso to C:\Use rs\robot\.docker\machine\machines\default\boot2docker.iso... (default) Creating VirtualBox VM... (default) Creating SSH key... Error attempting heartbeat call to plugin server: read tcp 127.0.0.1:60733->127. 0.0.1:60732: wsarecv: An existing connection was forcibly closed by the remote h ost. Error attempting heartbeat call to plugin server: connection is shut down Error attempting heartbeat call to plugin server: connection is shut down Error attempting heartbeat call to plugin server: connection is shut down Error attempting heartbeat call to plugin server: connection is shut down Error creating machine: Error in driver during machine creation: read tcp 127.0. 0.1:60733->127.0.0.1:60732: wsarecv: An existing connection was forcibly closed by the remote host. Looks like something went wrong... Press any key to continue... 

在docker/机器/问题/ 2773有类似的问题。

尝试自己创build机器时是否仍然存在问题,而不是使用快速入门:

finddocker-machine.exe安装位置(或者在你的%PATH%复制最新发布的 ),然后从一个普通的CMD会话中使用它:

首先testing现有的机器:

 # find the name of the machine created. docker-machine ls docker-machine env --shell cmd <nameOfTheMachine> docker machine ssh <nameOfTheMachine> 

然后尝试创build一个新的:

 docker-machine create -d virtualbox <aNewMachine> docker-machine env --shell cmd <aNewMachine> docker machine ssh <aNewMachine> 

我没有解决办法,但find了根本原因。

我已经安装了boot2docker,并已使用了几个月。 我一直在同一个文件夹中创build所有的vbox图像。

一天,我决定存档我的机器,并更改了我创buildvbox图像的文件夹。 它开始给这个有线错误。 我恢复了我的档案,并再次testing。 它开始工作正常。

我在两个设置上发现的差异是,在存档的文件夹中,它跳过了ca cert创build步骤并直接创build了机器。 在新的文件夹中创build一个证书,然后创build机器。 它看起来像服务器不喜欢新的证书!