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 Command Prompt: Part 2

Building and pushing Docker images with Command Prompt: Part 2

- [Instructor] On this part, you'll learn how to create a Docker image and then run it in a Docker container using commands instead of Visual Studio in the command prompt. For that, let us go to the app. Now here, the first thing that you need to do is that you need to locate this file and then run command prompt in that location, so I'll just go to the Solution Explorer. I'm going to just right click in here and then go to Open Containing Folder. Now that the folder is open, I'm just going to select it here, and then cmd, which is the shortcut for command prompt, and this is going to open the command prompt in this location. As you can see, I am inside Repo, so you can see in here the solution, then the project, and now inside here we have the Docker file. And then here, if you want to see all the available Docker commands, you can just type docker and then press enter. And here you have commands, like for example, docker rename to rename a container, docker kill, which kills one or…

Contents