【问题标题】:Docker-machine cannot connect to default machine (Windows)Docker 机器无法连接到默认机器(Windows)
【发布时间】:2017-03-09 11:41:29
【问题描述】:

在我的 Windows 8.1 Enterprise 上进行 Windows 更新后,我在使用 docker-machine 时遇到问题。 我正在使用 Docker 工具箱 1.12.5。我可以毫无问题地运行 docker,但是在 windows 更新后 docker-machine 无法连接到默认机器。 我可以在 VirtualBox 中看到默认机器正在运行,但是当我尝试运行时

docker-machine env default

它给了我“错误检查 TLS 连接:主机没有运行”。

当我跑步时

docker-machine ls

我明白了:

NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER   ERRORS
default            virtualbox   Timeout

我找到了一些重启默认机器的建议,所以我跑了

docker-machine restart default

但它总是给我以下错误:

 Restarting "default"...
Starting "default"...
(default) Check network to re-create if needed...
Error setting up host only network on machine start: C:\Program Files\Oracle\Vir
tualBox\VBoxManage.exe modifyvm default --nic2 hostonly --nictype2 82540EM --nic
promisc2 deny --hostonlyadapter2 VirtualBox Host-Only Ethernet Adapter --cableco
nnected2 on failed:
VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended in
fo not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at lin
e 507 of file VBoxManageModifyVM.cpp

我尝试了以下建议的解决方案: https://www.bountysource.com/issues/29373416-vboxmanage-exe-error-context-lockmachine-a-session-locktype_write-at-line-493-of-file-vboxmanagemodifyvm-cpphttps://github.com/docker/toolbox/issues/360 没有成功。

如果有任何建议,我将不胜感激。

【问题讨论】:

    标签: windows docker virtualbox docker-machine


    【解决方案1】:

    您可以尝试重新启动系统然后检查吗?

    Docker 已经发布了 docker 社区版和企业版。我建议您升级到社区版并使用以下命令重新创建您的默认机器。他们声称已经修复了这些版本中的一些错误。

    docker-machine create --driver virtualbox default

    您可以根据需要在上述命令中添加更多参数。

    【讨论】:

      猜你喜欢
      • 2018-01-03
      • 1970-01-01
      • 1970-01-01
      • 2019-06-15
      • 2022-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多