title: Debugging an already-running Docker Linux .NET Core container with Visual Studio 2017
body: <p>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.</p>
  <p>But when I run the same image instance (release version) using <code>docker run</code> from the command line, I am not able to find a way in Visual Studio 2017 to attach to that instance.</p>
  <p>How does Visual Studio do that and how can I do same for an already-running Docker Linux .NET Core container? Also, how can I do the same if the Docker image instance is running on a remote Linux machine?</p>
  <p>A few concrete steps with an example will be helpful.</p>