From the course: Deploying ASP.NET Core Applications: From Fundamentals to Advanced Deployment Strategies

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Building and pushing Docker images with Visual Studio

Building and pushing Docker images with Visual Studio

- [Instructor] Now on this part you'll learn how to build and push Docker images using the Docker file, using Visual Studio. For that, we're going to first create the image, then we are going to create the container, and then we are going to run the app in the container. So for that, let's go to Visual Studio. Now, before we do anything in Visual Studio, that is from the Docker desktop. And then in here, just go to containers. You can see we don't have any containers. And then if you go to images, you can see that we just have the default image of aspnet tagged as the version 8.0. Other than that, also make sure that the engine is running. Now let us go to Visual Studio. Since we did create the file using Visual Studio, what we need to do is just go to Solution Explorer, then right click on the Docker file and then build Docker image. So you can see that this did build a Docker image and it did name it dockerdeplomentapp:dev. Let us go to Docker desktop. Now here you can see that we…

Contents