无法在docker中创建计算机

时间:2016-01-12 14:58:03

标签: docker boot2docker

我刚在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...

2 个答案:

答案 0 :(得分:3)

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>

答案 1 :(得分:1)

我没有解决方案,但找到了根本原因。

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

有一天我决定归档我的机器并更改了我创建vbox映像的文件夹。它开始发出这个有线错误。我恢复了我的存档并再次测试。它开始工作正常。

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