Installing Docker on MacOS

Stephen Grider
A free video tutorial from Stephen Grider
Engineering Architect
4.7 instructor rating • 28 courses • 694,118 students

Learn more from the full course

Docker and Kubernetes: The Complete Guide

Build, test, and deploy Docker applications with Kubernetes while learning production-style development workflows

21:28:16 of on-demand video • Updated November 2020

  • Learn Docker from scratch, no previous experience required
  • Master the Docker CLI to inspect and debug running containers
  • Build a CI + CD pipeline from scratch with Github, Travis CI, and AWS
  • Understand the purpose and theory of Kubernetes by building a complex app
  • Automatically deploy your code when it is pushed to Github!
English [Auto] In the last section we started talking about using docker for Windows or dock or from Mac to get access to the dock or client and the server. In this section we're going to walk to the set up process on a Mac OS machine. So if you're using Windows right now then pause this video and skip over to the next lecture. All right so if you're still here I'm going to assume that you are on a Mac OS based machine. So here's what we need to do. We're going to first go to Dockerty common inside of our browser where we are going to sign up for a docker hub account. We need a docker help account not only to download the doc or for Mac client but we also need it for some stuff that we're going to do later on inside the course. After that we're going to download the installer package. We're going to log into Dr.. And then finally we're going to verify our installation by running one or two quick commands. So let's get to it. Again the first thing we'll do is navigate to Dockerty come inside of our browser. So I'm going to go to Dr. dot com. And then on the top right hand side you'll see a button that says get started. So I'm going to click on that and then going to make sure that I am on the developer tab and then I'll find download from Mac over here on the right hand side. Now when I click on that button it's going take me to another page. This is the page that we're going to ultimately download this program from. But you'll notice before we download it we have to actually sign up for an account and log in to Dakar. So I'm going to click on. Please log into download right there. And then we get prompted with a log in screen. Now if you do not already have an account you can find the create account button down here on the bottom right hand side. So I'm going to open up that page very quickly. You'll notice that one of the first inputs that you have to enter on the sign up page is a docker ID. This is a user name of sorts and it is going to be publicly visible to other people. We're going to need your doctor I.D. quite a bit throughout the remainder of this course. So no matter what you choose for your doc or ID right here please make sure that it's something that you're going to remember. OK. So once you sign up for your account we will go ahead and log in and go back to this store page right here. So now that I'm signed in I can see the get darker button right here. So I'm going to go ahead and click that and that's going to start up the download. Now this is a rather large file. So just to save a little bit of time in this lecture I went ahead and already downloaded the package. So once this thing has successfully downloaded on your machine we're going to open it up. It's going to take just a second or two to do its little bit. Of course always needs some extra time right. And then once it's finally done it's going to open up a window that looks like this right here. And so as you might guess we're going to do a little drag and drop over to the Applications folder. Now once you copy that thing over we now have to start up docker on your machine. You can do this by either opening up your launch pad right here and you can find the new Dr program list it or inside of any folder Explorer window you can go to the Applications section over here and find the listing for Dr.. Now once you get this thing copied over and installed we're going to launch stalker by double clicking it the first time you do this. It's going to appear that nothing at all is happening. But if you look up at the top right hand side of your screen you'll see this little kind of whale icon with a set of boxes on it. And if you click on that you'll see something that says docker is starting. All right. After a minute or two it's going to eventually resolve. And the boxes are going to go completely steady. That means that everything is done and set up on your local machine. Again it might take a minute or two. So give it a little bit of time to get through all of its little steps. All right. Now you noticed that my little boxes have steadied out which means that Ducker has successfully booted up. It's now the last thing that we're going to do is make sure that we log into docker. So you're going to click on the little button and then you're going to see a button right here so that says log in with docker when you click on that. It's going to pop open a little window where you're going to enter in your dock or I.D. number. That's the user name not your e-mail says the doc or ID and your password. Now once you do that the very last thing that we need to do is we need to make sure that we can verify that everything was set up correctly. So for this you're going to open up your terminal you can open up your terminal and any folder doesn't matter. And we're going to run a single command docker version like the as long as you see something like this appear on the screen. That means that you are all set and you're good to go if you don't see something like this. If you get an error message it means that something went wrong with the installation process and you'll want to hop over to the Q&A section attached to this lecture where we'll do a little bit of trouble shooting. All right. That's it. Let's take a quick pause right here and we'll continue in the next section.