I you have problems with debugging your .net core application using Visual Studio Tools for Docker – the app simply stops at start and you see a lot of Trying to connect to http://localhost (N/120) messages (where N = [1,120]) – then you might be interested in the workaround.
Which, as it turns out, is quite simple.
Open docker-compose.debug.yml file and simply remove the volumes section:
volumes:
– .:/app
Then you can debug it normally.
See the original solution post named Trying to connect to http://localhos