When you add or enable Docker support, Visual Studio adds a Dockerfile file to the project, that includes references to all required project from the solution. Enable Docker support during project creation in Visual Studio Adding Docker support to a Visual Studio project Add Docker supportīesides the option to add Docker support to an existing application, as shown in the previous section, you can also enable Docker support during project creation by selecting Enable Docker Support in the New ASP.NET Core Web Application dialog box that opens after you click OK in the New Project dialog box, as shown in Figure 4-32.įigure 4-32. The Add > Docker Support and Add > Container Orchestrator Support commands are located on the right-click menu (or context menu) of the project node for an ASP.NET Core project in Solution Explorer, as shown in Figure 4-31:įigure 4-31. Visual Studio 2022 also supports Kubernetes/Helm deployment. Container orchestration support is an opt-in feature in Visual Studio 2022 versions 17.0 or later. Container orchestration support, via Docker Compose, is available in Visual Studio 2022 versions 17.0. The next level is container orchestration support, which adds a Dockerfile to the project (if it doesn't already exist) and a docker-compose.yml file at the solution level. In ASP.NET Core projects, you can just add a Dockerfile file to the project by enabling Docker support. There are two levels of Docker support you can add to a project.
To learn more about installing Docker for Windows, go to ( ).