newbee2000
V2EX  ›  问与答

局域网设备无法访问 wsl 的容器

  •  
  •   newbee2000 · Nov 21, 2024 · 1289 views
    This topic created in 599 days ago, the information mentioned may be changed or developed.
    win11 24h2 最新版 wsl2 安装了 docker desktop ,部署了几个服务,目前出现的问题,宿主机通过本机 ip:端口的方式可以访问,但是局域网其他设备通过 ip:端口就无法访问。

    .wslconfig 配置如下

    [wsl2]
    localhostForwarding=true
    networkingMode=mirrored
    dnsTunneling=true
    firewall=true
    autoProxy=true
    [experimental]
    autoMemoryReclaim=gradual
    hostAddressLoopback=true
    newbee2000
        1
    newbee2000  
    OP
       Nov 21, 2024
    已解决,去防火墙放行 Docker 需要选择 Docker Desktop Backend 进程,就可以了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4424 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 05:34 · PVG 13:34 · LAX 22:34 · JFK 01:34
    ♥ Do have faith in what you're doing.