tmly200
V2EX  ›  Windows

救急, win11 23H2 更新了最新的 wsl 后,无法访问 docker 中的服务

  •  
  •   tmly200 · Oct 23, 2023 · 2478 views
    This topic created in 945 days ago, the information mentioned may be changed or developed.

    docker desktop 运行正常,也 bind 了 0.0.0.0 ,WSL integration 设置里也都勾选了 0.0.0.0:27017->27017/tcp 0.0.0.0:6379->6379/tcp

    ifconfig 查看网络信息,wsl 与主机 ip 一致,已关闭所有端口转发、防火墙 无论是 wsl 中还是 win 中,所有服务都无法连接

    2 replies    2023-10-24 00:53:11 +08:00
    zxw567
        1
    zxw567  
       Oct 23, 2023   ❤️ 1
    wsl 与主机 ip 一致是开了 mirrored network 吗?是的话可以参考一下这个 issue
    https://github.com/microsoft/WSL/issues/10494#issuecomment-1754170770
    wanmyj
        2
    wanmyj  
       Oct 24, 2023 via iPhone
    你要使用 ignore port 选项的。这点确实很烦,加服务还要重启 wsl
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3627 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 04:52 · PVG 12:52 · LAX 21:52 · JFK 00:52
    ♥ Do have faith in what you're doing.