In this lesson, we'll cover installing Docker. This should be a straightforward process regardless of whether you are using a Mac or Windows machine, though as always, it's possible for unexpected issues to come up.
First, you'll need to install Docker Desktop on your machine. Choose the operating system that fits your configuration (Mac, Windows, or Linux).
Important note: Once you have Docker Desktop on your machine, you'll need to have it open to run Docker commands.
Installing Docker on Mac machines is very simple. You do need to have at least macOS 10.14 (Mojave). If you have an earlier OS, you will need to update. There are complete instructions for installing Docker on Mac machines here. You probably won't even need these instructions, though - the install process is self-explanatory and, like many other Mac software installations, very easy to complete.
It can be complicated to install software on Windows machines - fortunately, this shouldn't be a complicated install as long as you have Windows 10 and your version is at least 1903. If your version is older than that (or only 1903), you should definitely update as Microsoft is no longer maintaining older versions. Also, there can be some additional installation issues on these older versions so we recommend updating anyway.
To check your version, you can enter
ver in Windows Command Prompt or you can hit the Windows key + R, type
winver, and then select OK. You can get more information on Docker system requirements here.
Next, the installation steps should be as simple as these steps. Download the Docker Desktop Installer and make sure to check that Enable WSL2 Features is selected in Configuration. WSL is Windows Subsystem for Linux and you can also use it to run a Linux OS, like Ubuntu. Then it should be as simple as following the installation steps.
We have seen that sometimes there is an issue with enabling WSL2. In our case, we were simply asked to download the latest WSL2 package (step 4 in the WSL installation instructions).
If, for some reason, you find that you need to install WSL2 manually, you can go through all of these instructions. Step 6 is not required unless you plan to also install a Linux distribution as well.
Lesson 2 of 10
Last updated May 23, 2022