docker desktop 结合 wsl 的话, 服务进程运行在 docker-desktop 服务器中。 其它Linux使用client连接。

PS C:\Users\xqw> wsl -l -v
  NAME              STATE           VERSION
* Ubuntu-24.04      Running         2       // docker client
  docker-desktop    Running         2      // dockerd server

Use the WSL 2 based engine

*Add the .docker.internal names to the host’s /etc/hosts file

Enable integration with my default WSL distro

❤️ 转载文章请注明出处,谢谢!❤️