Skip to content

Instantly share code, notes, and snippets.

@gnschenker
Created October 16, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnschenker/ca89cb09378ba7ff09eb5379908aa8c3 to your computer and use it in GitHub Desktop.
Save gnschenker/ca89cb09378ba7ff09eb5379908aa8c3 to your computer and use it in GitHub Desktop.
Docker run command of VS to enable debugging inside a container
docker run -dt \
-v "C:\Users\gnsch\vsdbg\vs2017u5:/remote_debugger:rw" \
-v "C:\Users\gnsch\source\repos\WebApplication1\WebApplication1:/app" \
-v "C:\Users\gnsch\source\repos\WebApplication1:/src" \
-v "C:\Users\gnsch\AppData\Roaming\Microsoft\UserSecrets:/root/.microsoft/usersecrets:ro" \
-v "C:\Users\gnsch\AppData\Roaming\ASP.NET\Https:/root/.aspnet/https:ro" \
-v "C:\Users\gnsch\.nuget\packages\:/root/.nuget/fallbackpackages2" \
-v "C:\Program Files\dotnet\sdk\NuGetFallbackFolder:/root/.nuget/fallbackpackages" \
-e "DOTNET_USE_POLLING_FILE_WATCHER=1" \
-e "ASPNETCORE_ENVIRONMENT=Development" \
-e "NUGET_PACKAGES=/root/.nuget/fallbackpackages2" \
-e "NUGET_FALLBACK_PACKAGES=/root/.nuget/fallbackpackages;/root/.nuget/fallbackpackages2" \
-p 59074:80 \
-p 44399:443 \
--entrypoint tail \
webapplication1:dev -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment