beimengyeyu
V2EX  ›  Docker

求助 ubuntu 下 容器内无法访问宿主机上面的别的服务

  •  
  •   beimengyeyu · Oct 1, 2022 · 1724 views
    This topic created in 1349 days ago, the information mentioned may be changed or developed.

    通过 宿主机 ip ( docker0 网卡 ip ) + 端口的形式无法访问,可以 ping 通 telnet 端口不通。

    在 mac 和 centos 下面验证是可以访问的,但是在 ubuntu 下面无法访问,已经尝试关闭防火墙但是没有效果。求大佬们提供一下排查思路。

    1 replies    2022-10-01 13:49:21 +08:00
    ch2
        1
    ch2  
       Oct 1, 2022
    查一下路由表
    route -n
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4048 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:14 · PVG 18:14 · LAX 03:14 · JFK 06:14
    ♥ Do have faith in what you're doing.