- [Instructor] Docker's primary job
is to manage a Linux server
and start and stop your containers on it as required.
Now most of us don't work on laptops running Linux
all the time so many people use a virtual machine,
running on their laptop to act as the Linux server
and run the server side of Docker.
Docker provides tool that make managing this
very nearly transparent.
To take a look at how that works
first we start with your computer.
This is the thing you're physically typing on.
On that, in your terminal, you interact
with a program named Docker.
That Docker is the client that is connecting
to a program named Docker that's the server
that's controlling a Linux virtual machine.
So also on your laptop you have a Linux Virtual Machine
being managed by Docker for Windows
or Docker for Mac, depending on your platform.
Once you have it installed
you can click on the little whale up here
and see that it's running.
You usually don't have to interact with this very often
other than starting and stopping it.
It's fairly well automated at this point.
Let's take a look at Docker in action.
Over here in my terminal, I'm gonna run
Docker to run the Docker client
run is the command.
I'd like to run a container.
And I'm just gonna run the hello world container
provided by Docker.
All it does is print out some information about Docker.
See it there?
It doesn't have it already locally
so it's automatically fetching it from the internet,
downloading everything required to run it,
and then running it.
Ah, it said hello.