Docker,等待SSH可用

5
我在“MAC OSX Yosemite 10.10.5”上安装了Docker CE及其ToolBox,当我启动“Docker Quickstart Terminal”时,我会收到下面的消息,说正在等待SSH可用并要求输入密码。请提供解决方案,非常感谢。
附注:类似的问题没有帮助,所以请不要将问题标记为重复。
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:

尝试删除VirtualBox,然后删除Docker,再仅安装Docker。 - Robert
@Robert 我之前试过那个方法,但是没有成功,你有其他建议吗? - Zakaria Jaadi
3个回答

1

打开VirtualBox,检查更新(在左上角,苹果图标旁边), 更新VirtualBox,然后问题就解决了。

附注:我还更改了VirtualBox(默认)设置 enter image description here


0

对我来说,这是因为我最近按照这个建议禁用了令人讨厌的“磁盘未正常弹出”通知消息,每次解锁 Mac 时都会出现:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableEjectNotification -bool YES && sudo pkill diskarbitrationd

但是不幸的是,这破坏了一堆系统组件,包括磁盘挂载(Docker .dmg或CLI安装需要)。这个答案来拯救我撤销上述命令所做的更改:

sudo mv /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist-backup

0

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接