Docker 说“连接被拒绝”。本地主机工作正常。问题出在一行。

Docker 说“连接被拒绝”。本地主机工作正常。问题出在一行。

Last week I containerized an app that was running fine locally。

Deployed to Docker。

Got connection refused errors immediately。

Checked the port mapping。

Checked the environment variables。

Ran curl localhost:3000 from inside。

来源:Dev.to