microsoft / generator-docker

Yeoman generator for Docker
Other
346 stars 69 forks source link

Debugging already running Docker Linux .net core container with visual studio 2017 #139

Open ankgupta067 opened 6 years ago

ankgupta067 commented 6 years ago

with visual studio when i create a .net core application and run it in Linux container, i can easily debug it using visual studio 2017.

But when i run same image instance(release version) using docker run from cmd, i am not able to find a way in VS 2017 to attach to that instance.

I wan to understand how visual studio does that and how can i do same for an already running Docker Linux .net core container, also how to do same if docker image instance is running on a remote linux machine.

Few concrete steps with example will be helpful.