Running Windows containers

As already hinted at by the first part of this chapter, launching and interacting with Windows containers using the Docker command-line client is no different to what we have been running so far. Let's test this by running the hello-world container:

$ docker container run hello-world

Just as before, this will download the hello-world container and return a message:

The only difference on this occasion is that rather than the Linux image, Docker pulled the windows-amd64 version of the image that is based on the nanoserver-sac2016 image.

Now, let's look at running a container in the foreground, this time running PowerShell: ...

Get Mastering Docker - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.