Docker Toolbox:创建机器时出错:创建机器时驱动程序出错:超过最大重试次数(5)


9

我在Windows 7,VirtualBox 5.0.4,Docker工具箱1.9.0上。当我运行快速入门时,我得到:

Creating Machine default...
Running pre-create checks...
Creating machine...
Error creating machine: Error in driver during machine creation: Maximum number of retries (5) exceeded
Looks like something went wrong... Press any key to continue...

但是,当我打开VirtualBox并查看时,确实得到了正在运行的“默认” VM。在我的VBox.log中,我看到了(完整文件在这里):

00:00:00.696246 HM: HMR3Init: VT-x w/ nested paging and unrestricted guest execution hw support

因此,VT-X支持对我来说还可以。就在日志文件的末尾,我看到关于未安装D-Bus的不祥之处:

00:00:46.950561 VMMDev: Guest Log: 00:00:10.018836 vminfo   Error: Unable to connect to system D-Bus (3/3): D-Bus not installed

在这里已报告了D-Bus问题https://github.com/docker/toolbox/issues/214当我在此之后再次直接运行快速入门时,我收到一条有关获取IP地址的错误消息:

Machine default already exists in VirtualBox.
Setting environment variables for machine default...
Error running connection boilerplate: Error getting driver URL: Something went wrong running an SSH command!
command : ip addr show dev eth1
err     : exit status 255
output  :


                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

Error getting IP address: Something went wrong running an SSH command!
command : ip addr show dev eth1
err     : exit status 255
output  :
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com
NOTE: When using interactive commands, prepend winpty. Examples: 'winpty     docker run -it ...', 'winpty docker exec -it ...'.

如果我运行命令,则会收到另一条与连接有关的消息:

$ winpty docker run hello-world
An error occurred trying to connect: Post     http://localhost:2375/v1.21/containers
/create: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made     because the target machine actively refused it.

此时,我转到https://www.virtualbox.org/wiki/Testbuilds并获得VirtualBox 5.0.9,然后卸载了Docker Toolboox,删除了默认的VM和.docker目录,然后重新安装了Toolbox,然后重新运行它,并遇到相同的问题:

Creating Machine default...
Creating CA: C:\Users\marwick\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\marwick\.docker\machine\certs\cert.pem
Running pre-create checks...
Creating machine...
Error creating machine: Error in driver during machine creation: Maximum number of retries (5) exceeded
Looks like something went wrong... Press any key to continue...

此尝试的日志文件在这里:http : //pastebin.com/9VjD9t6P

我该如何工作?

Answers:


12

遇到相同的问题(运行docker命令会给出错误消息:无法建立连接,因为目标计算机主动拒绝了它)。
权限存在问题(可能目标计算机是在其他用户帐户下创建的)。

这对我有用:打开Oracle VM VirtualBox,然后右键单击名为“ default”的计算机。如果正在运行,请选择“关闭->关闭电源”。然后选择“删除...”,然后单击“删除所有文件”按钮。

关闭Oracle VM VirtualBox并再次运行Docker_Quickstart。它将创建一个没有权限问题的新默认VM。


这个解决方案也对我有用。
奥利弗·伯德金

我很高兴它为其他人所用,但是我已经做了好几次了,并且删除了与VM相关的点文件,并且没有任何改善。
2015年

@Ben您应该从virtualbox用户界面中删除文件(删除所有文件)
MediaVince

0

Ben,也许您使用的是Ghost系统,则您的uxtheme.dll被破解,导致您的VM启动失败。使用原始的uxtheme.dll替换c:\ windows \ system32 \ uxtheme.dll,然后它将创建一个新的默认VM,而没有权限问题。


您能解释一下“鬼魂系统”的含义吗?我不明白:$
2015年

@Ben我认为他的意思是您的操作系统是从另一个硬盘克隆的。
Bhoomtawath Plinsut
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.