linxy19957
V2EX  ›  Docker

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

  •  
  •   linxy19957 · Aug 19, 2019 · 5982 views
    This topic created in 2485 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   ·   2976 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:53 · PVG 22:53 · LAX 07:53 · JFK 10:53
    ♥ Do have faith in what you're doing.