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,900 courses taught by industry experts.

Building and pushing Docker images with Command Prompt: Part 1

Building and pushing Docker images with Command Prompt: Part 1

- [Instructor] On this part, you'll learn how to build, publish, and run Docker container images by using Command Prompt instead of Visual Studio. So for that, let us go to our project and see it in there. Now in the project, we have already seen that we have the Docker file and if you go to the Solution Explorer, you can see that it's inside this project, So the DockerDeployment.App. What we need to do is that we need to open Command Prompt in the folder that does have the Docker file. For that, you can just right-click and then just go to Open Folder in File Explorer. Then you just go back. So you go to the level where you have the Docker file, and then here at the top just type cmd. This is going to open Command Prompt in this folder. You can see that the Command Prompt has been opened in the project folder. Now here we need to use a Docker command to create the image. If you're not sure about the Docker command, you can always just type in here, Docker. You're going to get a lot…

Contents