linxy19957
V2EX  ›  Docker

docker 可以让不同的容器通过不同的网卡访问网络吗

  •  
  •   linxy19957 · Aug 19, 2019 · 5980 views
    This topic created in 2484 days ago, the information mentioned may be changed or developed.

    宿主机有两张网卡,eth0 和 eth1,两张网卡均能访问互联网
    希望创建两个容器,使得容器 A 使用 eth0 访问互联网,B 使用 eth1 访问
    两个容器访问的是同一个目标,因此不能在宿主机使用路由将两个容器分开

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   920 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:54 · PVG 02:54 · LAX 11:54 · JFK 14:54
    ♥ Do have faith in what you're doing.