【问题标题】:docker, waiting for SSH to be availabledocker,等待 SSH 可用
【发布时间】:2019-07-04 18:58:04
【问题描述】:

我在“MAC OSX Yosemite 10.10.5”上安装了 docker CE 及其工具箱,当我启动“Docker 快速启动终端”时,我收到以下消息:等待 SSH 可用和要求输入密码。请提出解决方案,任何答案将不胜感激。

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

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 我之前试过了,但是没用,你还有什么建议吗?

标签: macos docker ssh docker-machine


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2017-03-16
      • 2020-10-24
      • 2021-01-09
      • 2018-10-24
      • 1970-01-01
      • 1970-01-01
      • 2021-04-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多