- [Instructor] All right.
Let's go ahead and install Docker on this Mac.
I'm going to head over to Google,
and give a search for Docker desktop.
All right.
The first link we find here,
which is docker.com/products/desktop.
Of course, the link may change over time.
Now we're going to head and click on
download Docker for Mac and Windows.
These used to be separate.
Now you start off in the same place for both platforms.
It's going to ask me to log in to Docker.
This is the Docker ID you'll use
for publishing images to the world
and accessing private images.
It's not super critical what you choose here,
but it is definitely worth signing up.
So if you don't have a Docker ID already,
go ahead and click on the sign up button down here.
And go through the flow.
Need to go ahead and enter my password.
Okay.
Now let's click download Docker for Mac.
Okay.
I'm going to click on it.
All right, now let's grab Docker,
and drag it into the Applications folder.
(computer dings)
Okay.
Now I can close that.
And go ahead and run Docker from the Finder.
Yes, I want to open Docker
that I downloaded from the Internet.
Okay, now here we get to use that Docker ID again.
This is optional here.
You can log in now, or you can log in later,
but it's definitely worth doing,
and it will remember your login.
It's a good thing to do while Docker is busy
downloading a virtual machine in the background
and getting your computer set up.
Okay.
Docker is now up and running.
And you can in general, you can click on the whale up here
to see what's going on with your Docker.
If things start breaking, or just seem a little weird,
this option right down here is your friend.
That will restart the Docker virtual machine
running on your computer.
And generally fixes about 99% of problems.
Now, in the extreme cases, quit and open it again.
All right, let's go see this in action.
To actually run Docker, head on over to the terminal
and run the Docker command.
So we see this just prints out a little information on
what Docker can do.
Now, if you get a message here saying
cannot connect to something,
socket not available, et cetera,
then look up here to make sure
that Docker has actually finished starting,
and hit the restart button if it hasn't.
Okay.
Docker info just tells you a little bit and confirms
that the server side of Docker is indeed running
the side started up here.
Let's run something.
Docker run.
Hello
world.
All right, it didn't find the hello world image locally,
so it automatically downloaded it from the Internet,
started up a container,
and that container printed out a little information
about how Docker works.
So we can say we've got Docker working on this computer,
and we are ready to go for this course.