【问题标题】:How to fix docker-machine ip?如何修复docker-machine ip?
【发布时间】:2017-01-17 12:28:43
【问题描述】:

我正在运行一个带有 docker-toolbox for windows 的 Docker 容器,我正在努力访问它。

我只能从物理主机访问我的容器,同时使用 LAN IP,例如 192.168.x.x。

我想以某种方式解决这种情况,我有什么选择?

【问题讨论】:

    标签: windows docker docker-toolbox


    【解决方案1】:

    此问题仅在需要 docker-toolbox 时以及默认使用 hyper-v 的窗口版本(例如 Windows Server 2012 RC2 和类似版本)上出现。

    问题是 VirtualBox 和 Hyper-V 不能在同一台机器上共存。一次只能运行一个管理程序,由于 Hyper-V 一直在运行,而 VirtualBox 只在启动时运行,VirtualBox 在这种情况下是输家。

    有两种可能的解决方案:

    1. 禁用 hyper-v:

      • 以管理员身份打开 cmd 并输入:bcdedit /set hypervisorlaunchtype off
    2. configure virtual box to use hiper-v aswell

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-25
      • 2016-06-20
      • 1970-01-01
      • 2020-12-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多