To be able to create a Docker image, Docker Desktop needs to be installed, as Visual Studio uses this to construct the image. With a complete Dockerfile, the image can be built using the following steps:
- Right-click the Dockerfile in Visual Studio and select Build Docker Image:
- During the compilation and building of the image, take a look at the output window. Looking at it will provide more insights into the layered approach of container images. This layered approach is visible via the steps shown in the output window:
- Docker Desktop also makes it possible to run and store images locally. After ...