dzdh
V2EX  ›  Docker

有办法可以在宿主机通过 container_name 与容器内进行通信吗?

  •  
  •   dzdh · Jun 15, 2022 · 1944 views
    This topic created in 1607 days ago, the information mentioned may be changed or developed.
    3 replies  •  2022-06-15 15:08:08 +08:00
    wheeler
    wheeler
    Jun 15, 2022 via iPhone
    1
    hosts 手动添加地址?
    dzdh
    dzdh
    OP
    Jun 15, 2022
    2
    @wheeler 应该是行不通的。我想的有点多。
    zhouwb
    zhouwb
    Jun 15, 2022
    3
    不行吧,通过 ip 倒是可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   699 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:52 · PVG 01:52 · LAX 09:52 · JFK 12:52
    ♥ Do have faith in what you're doing.