- [Instructor] Now I'd like to show you how to install
Docker for Windows.
We're here at docker.com.
We're on the Docker for Windows homepage.
I'm going to click on Download Docker for Windows
from the Docker store.
This is the Docker CE edition, or Community Edition.
So we're downloading Docker for Windows.
It's important to point out that Docker for Windows
works on Windows 10 Pro, 64-bit edition
or the latest versions of Windows Server 2016.
It's not compatible with older versions of Windows.
So with Docker for Windows downloaded,
we'll open the executable and start the installation.
This will take just a moment.
And with the installation successful we'll close that out.
And let's go to our desktop where we'll find a new icon here
called Docker for Windows.
So I'll just double click on that icon
to start the Docker daemon.
Tells us that Docker is starting.
And with that we get the message that Docker
is now up and running.
The first time it starts you'll want to
sign in to the Docker Cloud or create a Docker ID
if you don't already have one.
It tells us welcome to the Docker Cloud.
That's going to allow us to share our containers
with the Docker Cloud.
Upload our Docker images, or push those images up.
And pull images down from the Docker Cloud.
You can see we're signed in here to Docker Cloud.
So with that let's go to our command prompt
and let's run some Docker commands.
So from here we can do a docker version
and you can see what version of Docker we're running.
Now by default, Docker for Windows
runs Linux containers in Hyper-V.
The first time you install it you may get a message
that Hyper-V is required.
And if so you'll have to enable Hyper-V
and restart your machine.
So let's do a command like docker container run -it ubuntu
to pull down an Ubuntu Linux container.
And run it inside Docker for Windows.
All right, there we go.
You can tell by the prompt immediately
that we are inside a Linux container.
You can see the Linux file system here.
And perform all your favorite Linux commands.
This is just an example of a Linux container
that you can pull down from Docker Hub.
So if we exit out of that, that container has gone away.
We'll clear the screen.
And now let's enable Docker to run Windows containers.
So if we go over to Docker icon here in the tray.
And we click on Switch to Windows containers.
So we switched to Windows containers
and now we can run a command like
docker run microsoft/dotnet-samples:dotnetapp-nanoserver
and there we go.
We pulled down the .NET Windows core
and this is actually the .NET bot on the screen.
It's kind of hard to see.
But this shows us that we
successfully ran a Windows container
specifically the .NET core.
So that's how you run Linux and Windows containers
over in Docker for Windows.