dzdh
V2EX  ›  Docker

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

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