Skip to content

Installing Docker Desktop

Before we can start packing containers, we need to install the crane. For local development, the easiest and most comprehensive tool is Docker Desktop. It includes the Docker Engine (which runs the containers), the Docker CLI (how we give commands), and Docker Compose (which we will use later to manage multi-container setups).

Head over to the official Docker site and grab the installer for your operating system.

Download Docker Desktop


Installing on a Mac is straightforward, but there is one crucial detail to verify: Apple Silicon vs. Intel.

  1. Download the correct .dmg file. If you are on an M1, M2, or newer Mac, you must select the “Apple Silicon” option. Using the Intel binary on Apple Silicon causes major performance penalties and architectural translation headaches.
  2. Open the .dmg and drag the Docker icon into your Applications folder.
  3. Launch Docker from your Applications folder. It will ask for elevated privileges the first time to install networking components and symlinks. Allow it.
  4. You should see a whale icon appear in your top menu bar. When the animation stops and the icon is solid, the Docker Engine is running.
A Note on Mac Resource Limits

Docker on Mac actually spins up a hidden, lightweight Linux virtual machine under the hood to run the containers (since containers share the Linux kernel). You can adjust how much CPU and memory that hidden VM is allowed to use via the Docker Desktop Settings (the gear icon) under “Resources.”


Windows requires a bit more setup because it relies on the Windows Subsystem for Linux (WSL).

Docker Desktop on Windows heavily prefers WSL 2 as its backend. It is significantly faster and more stable than the older Hyper-V backend.

If you don’t have WSL installed:

  1. Open PowerShell as Administrator.
  2. Run the command: wsl --install
  3. Restart your computer if prompted.
  1. Run the .exe installer you downloaded.
  2. During the installation, ensure the “Use WSL 2 instead of Hyper-V” option is checked.
  3. Finish the installation and launch Docker Desktop from the Start menu.
  4. You will see the whale icon in your system tray (bottom right).
Signup

Docker Desktop may encourage you to sign in, but for normal local course work, a Docker account is usually not required. We’ll mainly use the CLI in this course and only use the Docker Desktop GUI to verify and inspect what Docker is doing.

Windows Home vs Pro

Docker Desktop works on both Windows Home and Windows Pro, but Windows Home requires the WSL 2 backend. Make sure WSL is humming along smoothly before fighting with Docker errors.

Docker Desktop Welcome

Figure 1: The Docker Desktop Welcome Screen

Once the visual Docker Desktop application is running, let’s make sure the command-line tools are wired up correctly. Open your terminal of choice and run:

Terminal window
docker --version

You should see an output similar to Docker version 29.0.3, build ced0996.

Next, let’s run a test container to ensure the engine can pull images and execute them.

Terminal window
docker run hello-world

If everything is working, Docker will:

  1. Look for the hello-world image locally.
  2. Realize it doesn’t have it, and pull it down from Docker Hub.
  3. Run the container.
  4. Print a success message (“Hello from Docker!”) to your terminal.
Docker Hello World Output

Figure 2: The Docker Hello World Output

Congratulations! Our dockyard is fully operational. Let’s start moving some cargo.

Next, we’ll break down some core Docker concepts.