How to debug .net Core project with Docker support, using Visual Studio on a remote docker server

时间:2018-02-03 10:11:55

标签: docker visual-studio-2017 .net-core

There are many similar questions like this, but my scenario is slightly different.

I use Visual Studio Enterprise 2017, dotnet Core app 2.0, on a Windows 10 Pro machine, where is running docker for windows.

I can run and debug my applications in my local machine's docker server, but now I would like to configure visual studio, for my current project only, to run the application in another docker server.

So in practice instead of running commands such as docker run, docker build and so on, I would like it to use docker --tls -H={theotherdockerserver} build ...

I could not find so far any parameter or configuration section that allows me to do so.

1 个答案:

答案 0 :(得分:0)

You need to have all your files accessible from remote server. One way to do this is to put your code in GitHub repository and run command: docker --tls -H={dockerserver} build https://github.com/{user}/{repository}.git

Documentation for GitHub build.

Do you need an option without GitHub repository?