docker-machine ssh into Vagrant VM failing



我有两个流浪的虚拟机,在安装了docker的VirtualBox上运行Ubuntu16.04。我想为在这两个 VM 上运行的 docker 容器创建一个覆盖网络。 因此,我按照这里的教程进行操作。

我已经创建了虚拟机并尝试运行eval "$(docker-machine env mh-keystore)".但是,它失败并出现以下错误:

Error checking TLS connection: Error checking and/or regenerating the certs:
There was an error validating certificates for host "172.28.128.5:2376": dial tcp 172.28.128.5:2376: getsockopt: connection refused
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.

然后,我尝试重新生成错误中提到的证书。但是,它无法建立与 VM 的 SSH 连接。

Regenerating TLS certificates
Waiting for SSH to be available...
Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

我仍然可以将 ssh 流浪到 VM。有人可以帮助我使用 docker 机器使用流浪虚拟机吗?

我遇到了类似的问题"等待 ssh 可用",结果发现是一些名为 proxycap 的公司代理拦截软件安装的网络堆栈中的未签名驱动程序,导致 virtualbox 在设置从本地机器到 boot2docker VM 的端口转发时出错。检查 VM 计算机日志,并在设置端口转发时查找错误消息。它还应该列出导致错误的未签名驱动程序,然后您只需卸载相应的应用程序。

最新更新