Latin
V2EX  ›  Docker

wsl2 docker network_mode host 求教

  •  1
     
  •   Latin · Oct 8, 2021 · 1908 views
    This topic created in 1750 days ago, the information mentioned may be changed or developed.
    • 环境描述:

    win10 wsl2 docker

    • 问题描述

    无法使用网卡 host 模式

    • 问题进度:

    已经查阅各个渠道 github google stackoverflow 还没有透彻的解决办法

    5 replies    2021-11-09 17:25:49 +08:00
    smallX
        1
    smallX  
       Oct 8, 2021
    怎么判断 无法使用网卡 host 模式?
    AllenHua
        2
    AllenHua  
       Oct 8, 2021   ❤️ 1
    据我所知,windows 上 docker desktop 无法使用 host network mode

    https://stackoverflow.com/questions/48915458/windows-run-docker-with-network-host-and-access-with-127-0-0-1

    > The host networking driver only works on Linux hosts, and is not supported on Docker for Mac, Docker for Windows, or Docker EE for Windows Server.

    我 2021-07-19 也踩过坑
    Latin
        3
    Latin  
    OP
       Oct 8, 2021
    @smallX 因为 hyper-v
    Latin
        4
    Latin  
    OP
       Oct 8, 2021
    @AllenHua 那就不纠结了 就这样吧 (
    brucecao
        5
    brucecao  
       Nov 9, 2021
    也弄不明白哦。本想弄个 WSL2 +docker+ clash 透明代理,感觉要崩啊,docker 用 host 模式,咋也进不了 yacd 的模板,明明已经运行很好了,win 里连不上端口。失败!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4375 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.