admin管理员组文章数量:1435859
I started the docker container with the command docker run -d -p 6000:5000 webapi
, it runs a C# ASP.NET Core application on the localhost:5000
port. When I try to send a GET request to the URL http://localhost:6000/api/Users on the host machine using Postman (It should just return the entire list of users), it says Error: socket hang up. If you go inside the container and try to send the same GET request to the specified URL only with port 5000, everything will work. What could be the problem?
本文标签: cProblem sending HTTP request to Docker containerStack Overflow
版权声明:本文标题:c# - Problem sending HTTP request to Docker container - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745672517a2669656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论