解决方法: # 列出所有 WSL 发行版 wsl -l -v # 设置 WSL2 为默认版本 wsl --set-default-version 2 或者重启Docker Desktop,有时候能解决问题。