有人在 Windows 上使用 Docker + Node 20 时遇到过这种情况吗?我的容器构建一切正常,但运行几分钟后,对外的 HTTP 请求会随机卡住。重启容器可以暂时解决。日志里没有明显错误。这可能是 DNS 问题,还是 WSL2 的某种网络怪异行为?
Original
Anyone run into this with Docker + Node 20 on Windows? My container builds fine, but outbound HTTP requests randomly hang after a few minutes of uptime. Restarting the container temporarily fixes it. No obvious errors in logs. Could this be DNS or some networking quirk with WSL2?