Adding Docker support to an existing ASP.NET Core application

Imagine that you have an ASP.NET Core application without Docker support. To add Docker support to this existing application, simply add it from the context menu:

To add Docker support to an existing ASP.NET Core application, you need to do the following:

  1. Right-click on your project in Solution Explorer
  2. Click on the Add menu item
  3. Click on Docker Support in the fly-out menu:
  1. Visual Studio 2017 now asks you what the target OS is going to be. In our case, we are going to target Windows: ...

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.