Why can't access docker image after visual studio stop debugging, but i still can see the image is running?

I created and ran a simple Asp.net application(the default project) with docker support. when I run the application in docker the app runs fine on localhost:44357, I can see the image is running in docker by using "docker ps". when I stop the debugging in visual studio, I type docker ps, I can see the docker image still running but I won't be able to access the app with the browser (localhost:44357) anymore ! Can someone tells me why is this happening?