From the course: Windows Server 2019: Deploying Containers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Control containers in Windows

Control containers in Windows - Windows Server Tutorial

From the course: Windows Server 2019: Deploying Containers

Start my 1-month free trial

Control containers in Windows

- [Instructor] If you're going to be administering containers inside Windows Server 2019, there are a few commands that you need to be aware of when it comes to controlling your containers. So, if we just type docker by itself, we get a list of all the different docker commands, or subcommands, I should say, that we can run. I want to specifically point out docker ps. The ps subcommand allows us to list containers, as you can see there. So this lists the running containers that are currently executed on this Windows host. And then there's docker start, to start one or more stopped containers. And then finally, docker stop, to stop one or more running containers. Now, we've already used the docker run command to run a container in Windows, but what's important to point out is when that container stops running, it becomes a stopped container. It doesn't go back to becoming an image, the image still exists, you simply have a stopped container. So if we type docker ps, you get a list of…

Contents