docker,等待SSH可用

时间:2017-05-26 14:05:19

标签: macos docker ssh docker-machine

我在" MAC OSX Yosemite 10.10.5"上安装了docker CE及其ToolBox,当我启动" Docker Quickstart Terminal"我收到以下消息:等待SSH可用并要求输入密码。请提出解决方案,任何答案都将受到高度赞赏。

ps:类似的问题没有帮助,所以请不要将问题标记为重复

Running pre-create checks...
Creating machine...
(default) Copying /Users/macbookpro/.docker/machine/cache/boot2docker.iso to   
/Users/macbookpro/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
Error creating machine: Error in driver during machine creation: Unable to start the VM: /usr/local/bin/VBoxManage startvm default --type headless failed:
VBoxManage: error: The virtual machine 'default' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Starting "default"...
(default) Check network to re-create if needed...
Unable to start the VM: /usr/local/bin/VBoxManage startvm default --type headless failed:
VBoxManage: error: The virtual machine 'default' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
Regenerate TLS machine certs?  Warning: this is irreversible. (y/n):    
Regenerating TLS certificates
Waiting for SSH to be available...
Password:

2 个答案:

答案 0 :(得分:1)

转到启动VirtualBox,检查更新(在左上角的Apple图标旁边), 更新VirtualBox,然后我解决了这个问题。

ps:我还更改了VirtualBox(默认)设置{{3}}

答案 1 :(得分:0)

我遇到了这个问题(在具有VirtualBox的旧副本的Mac上安装Docker Toolbox时)。我可以确认卸载VirtualBox为我解决了问题。 (除了删除VirtualBox应用程序之外,我还使用https://nektony.com/how-to/uninstall-virtualbox-on-mac中描述的过程手动清除了一些残留目录)。谢谢。