Problem with running my app from container

It’s hard to tell from the formatting of localhost in your post, but apparently http://localhost:52115/ does not work for you, even though -p 52115:5000 publishes the internal port 5000 to port 52115 on your machine.

So, maybe the application is only accepting connections from what is considered localhost by the container? The following may help, though it’s not about .NET: