In this article we will learn how to add docker support for existing ASP.NET or any .NET application, before enabling docker support let's know about the docker in brief
What is Docker?
Docker is one of the platform for containerizing the applications which allows to deliver the application in packages over the operating machine level virtualization. Docker allows to run and create the images in Linux and windows containers etc.
Step 1: Install Prerequisites
You need to install the docker client based on your operating system on your machine. you can download the docker by using the following link
The installed docker desktop client will be look like as shown in the following image,
Hope you installed the prerequisites.
Step 2: Open Existing Application
Open your existing application in visual studio as shown in the following image
Docker client helps to create and run the docker images locally as well as created images you can push in to the any image container registry such as ACR or docker hub.
After clicking on docker option, application runs inside the docker container as shown in the following image