无法在docker中创建计算机

我刚刚在我的Windows 7机器上安装了docker.当我启动Docker QuickStart时,我得到以下错误,这似乎是在创建机器时:

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/machine/issues/2773中也存在类似问题.

尝试查看自己创建计算机时问题是否仍然存在,而不是使用快速启动:

找到docker-machine.exe的安装位置(或copy the latest released one in your %PATH%)并在常规CMD会话中使用它:

首先测试现有机器:

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

然后尝试创建一个新的:

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

转载注明原文:无法在docker中创建计算机 - 代码日志