• 请不要在回答技术问题时复制粘贴 AI 生成的内容
helieting
V2EX  ›  程序员

docker-machine 有什么桥接方法

  •  
  •   helieting · Jun 23, 2017 · 3681 views
    This topic created in 3287 days ago, the information mentioned may be changed or developed.
    docker 小白,在 windows 10 中,用 hyper-v 创建的 docker-machine 可以分到局域网内的 ip,有什么办法在 ubuntu 下用 virtualbox 创建也可以得到。
    3 replies    2017-06-23 18:14:10 +08:00
    cxbig
        1
    cxbig  
       Jun 23, 2017
    你 VirtualBox 里创建一个 VM 也有 Bridge 选项的,不在 Docker Machine 里控制。
    helieting
        2
    helieting  
    OP
       Jun 23, 2017
    @cxbig docker-machine 就是一个 vm,创建后再 VirtualBox 里改成桥接,docker-machine ssh 就连不上了,有遇到过么
    cxbig
        3
    cxbig  
       Jun 23, 2017
    @helieting
    从 NAT 改成 Bridge,网段 IP 都变了,你的 docker-machine 的配置更新了没有?
    另外路由器配置一下,给 vm 一个固定 IP,这样 docker-machine 就不用总是更新了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3317 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    ♥ Do have faith in what you're doing.