docker: The connection to the server was reset while the page was loading.

docker: The connection to the server was reset while the page was loading.,第1张

docker: The connection to the server was reset while the page was loading.

After changing the command from docker run -p 3000:3000 app to docker run -p 8080:8080 app, I can finally open this webpage on my local computer.

The possible reason is "The 'listening on 8080' is a message coming from the container. It is listening on port 8080 inside the container, but then docker may expose that internal port as a different port on the host. The port that is relevant to you is the docker-exported port, which may or may not be the same as the one in the container.Glad you got it worked out. It could have been a firewall issue, but I don't know what your firewall setup was.

"

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5720938.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存