- [Instructor] If you're a Mac user,
one of the easiest ways to get started with Docker
is to use Docker for Mac.
Docker for Mac contains the Docker container engine
and one thing that I should clarify
about Docker for Mac
is that you can run Docker Linux containers
on Docker for Mac,
not Docker Mac applications,
those Docker Linux containers
are actually run on top of a thin hypervisor
from Docker called Hyperkit.
To get started installing Docker for Mac,
click on the Docker Store
and then simply click Get Docker.
Docker for Mac is totally free
and in fact, I've already downloaded Docker for Mac,
so let's walk through a quick installation.
Here's the Docker DMG.
I'll just double click that.
We can simply drag and drop
the Docker icon here into our Applications folder.
I'll execute Docker.
You can see the Docker whale icon is up here.
It tells us that Docker is starting.
With Docker for Mac installed,
if we go into the Preferences
I do want to point out
that we're using the Docker for Mac Stable Edition.
You can switch this to the Edge Edition
to get updates
of actually the bleeding edge, cutting edge updates
from Docker so that you can test the latest features
as they come out before they release those features
into the Enterprise Edition.
With Docker for Mac you can share files
with your local computer.
You can share disk images
and Docker for Mac even includes Docker Swarm.
The latest version of Docker for Mac
allows you to change from Docker Swarm
for orchestration and even test Kubernetes
for orchestration locally on your Mac.
With Docker for Mac installed,
if we go to the command line,
you can type docker info
to verify that Docker is installed
and get some basic information
about your Docker installation
and if you want to run your first container on Docker
for Mac you can use docker run hello-world.
This will pull the hello-world container
from the Docker Hub public registry
and as you can see here
it tells us hello from Docker.
This container was pulled and run successfully
using Docker for Mac.
Any containers that you create on Docker for Mac
can easily be pushed up
to the Docker Hub public registry
and then they can be pulled down
into your Docker Enterprise Edition
running in the data center.