Choosing the Right ASP.NET Docker Image

There are a few things to consider when deciding what underlying execution environment you want to use for your ASP.NET application. For Linux, your choices are .NET Core and Mono. At the time of this writing, Mono is a more mature and fuller-featured framework, and more third-party NuGet packages support Mono than .NET Core. That said .NET Core is quickly catching up in terms of feature parity, and with Mono you lose .NET Core’s benefits, like side-by-side support. This becomes less of an issue for containers as each Dockerfile could include a different Mono runtime and you can have multiple containers, each with different versions of the Mono framework installed on the same Docker host.

The common recommendation ...

Get Microservices with Docker on Microsoft Azure™ (includes Content Update Program) 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.