Creating a Docker image
The Docker platform is an open source platform that helps us package applications (code, configuration, dependencies) as a standalone lightweight executable image that can then be deployed and executed in an Azure Kubernetes cluster.
Note
You can learn more about Docker and containers here:
https://docs.docker.com/get-started
https://docs.docker.com/desktop/windows
https://docs.docker.com/desktop/windows/install
Through the following steps, we will see how to package our application as a Docker container image:
- Add Docker support by right-clicking the
Distel.WebHost
project in Solution Explorer and selecting Add > Docker Support… as shown in the following figure:
- Once you select Docker Support…, you will get an option to select the target OS as shown in the following figure. For this demo, I have selected Linux: ...