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

docker-machine 有什么桥接方法

  •  
  •   helieting · Jun 23, 2017 · 3931 views
    This topic created in 3424 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
    cxbig
    Jun 23, 2017
    1
    你 VirtualBox 里创建一个 VM 也有 Bridge 选项的,不在 Docker Machine 里控制。
    helieting
    helieting
    OP
    Jun 23, 2017
    2
    @cxbig docker-machine 就是一个 vm,创建后再 VirtualBox 里改成桥接,docker-machine ssh 就连不上了,有遇到过么
    cxbig
    cxbig
    Jun 23, 2017
    3
    @helieting
    从 NAT 改成 Bridge,网段 IP 都变了,你的 docker-machine 的配置更新了没有?
    另外路由器配置一下,给 vm 一个固定 IP,这样 docker-machine 就不用总是更新了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   750 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:19 · PVG 07:19 · LAX 15:19 · JFK 18:19
    ♥ Do have faith in what you're doing.