我已经在 OSX 10.10.5 上安装了 Docker Toolbox v1.8.1b
这也安装了 VirtualBox v5.0.2
但是,当安装完成并且我运行 Docker Quickstart Terminal 时,它会做它的事情,在 virtualbox 中创建一个新的 VM,但没有启动它,并以消息 default is not running
结束。 .
当我尝试使用 docker-machine start default
运行机器时我收到消息 exit status 1
.
当我转到 VirtualBox 并尝试在那里启动机器时,我收到以下错误消息:
Failed to load VMMR0.r0 (VERR_VMM_SMAP_BUT_AC_CLEAR).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
那么有没有其他人得到这个或者我没有正确遵循说明?
最佳答案
我遇到了完全相同的问题。最近版本的 VirtualBox 似乎存在一个错误,已在最新的测试版本中修复。见 https://www.virtualbox.org/ticket/14412
我下载了最新的 VirtualBox 测试版本
https://www.virtualbox.org/wiki/Testbuilds
然后在安装新版本之前使用该安装程序中提供的卸载程序脚本删除有问题的版本。
再次运行 Docker QuickStart Terminal 使默认 VM 运行,但缺少 ca.pem 文件:
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
open /Users/justin/.docker/machine/machines/default/ca.pem: no such file or directory
VirtualBox 确认 VM 正在运行。
我可以创建一个新的 VM 并成功地将它与 docker 一起使用(在不同的终端窗口中):
Justins-MacBook:~ justin$ docker-machine create --driver virtualbox dev
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
To see how to connect Docker to this machine, run: docker-machine env dev
Justins-MacBook:~ justin$ eval "$(docker-machine env dev)"
Justins-MacBook:~ justin$ docker run hello-world
...
然后我删除了默认虚拟机:
Justins-MacBook:.docker justin$ docker-machine stop default
Justins-MacBook:.docker justin$ docker-machine rm default
Successfully removed default
运行 Docker QuickStart Terminal 创建了一个新的默认 VM,docker 现在可以愉快地使用它了。
更新:这里有一个 Unresolved 问题:https://github.com/docker/toolbox/issues/119
关于docker - 为什么我的 docker 机器不能在 OSX 下工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32161535/