Getting ready

Let's create a new ASP.NET Core web app project:

dotnet new web 

Open the newly-created project in Visual Studio Code and create a new file called DockerFile.

Notice that the filename is DockerFile, with no file extension.

We can be sure Docker is installed and running properly by opening a Terminal/Command Prompt window and executing the following commands:

    docker --version
    
    docker info  

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.