Hosting an ASP.NET Core web app in Docker containers

If you publish the project in a local data center, it's not so easy to deploy and configure the ASP.NET Core web application. Before Docker, developers usually deployed their applications to Virtual Servers.

First, they need to provision a Virtual Server, install the full OS on it, then install the required services on it, such as IIS, SQL Server, and so on.

After all these steps, the developer can deploy the application and configure it to run in that Virtual Server. It's not uncommon that projects need different environments, such as dev, test, staging, prod, and so on.

Also, at some time, developers usually differentiate the environment specs and resources, such as port numbers, database ...

Get ASP.NET Core MVC 2.0 Cookbook 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.