Skip to the workspace
Pebellslearn by building
Installation and Setup  ›  Lesson

Docker Desktop on Windows, macOS and Linux

Docker Desktop (Win/Mac/Linux) 12 minDocker Desktop installs the Docker CLI and tools on your computer and runs the Docker Engine inside a small managed Linux virtual machine, so Linux containers work on any laptop.

docker / Docker Desktop on Windows, macOS and Linux

Explore each scene at your own pace.

01 · The rule

The rule

Docker Desktop on Windows, macOS and Linux

You learned that containers share the host's Linux kernel. Most laptops run Windows or macOS, which have no Linux kernel. So how do millions of developers run Linux containers on them every day? The answer is Docker Desktop, and knowing what it does behind the curtain explains many of its quirks.

The rule

Docker Desktop brings a hidden Linux VM to your laptop.

Docker Desktop is one installer that gives you:

  • the docker CLI you type commands into;
  • the Docker Engine (the daemon that does the real work);
  • Docker Compose and Buildx for multi-container apps and builds;
  • a dashboard window for browsing images, containers and volumes.

The Engine needs a Linux kernel, so Desktop runs a small, managed Linux virtual machine and places the Engine inside it. On Windows it normally uses WSL 2 (the Windows Subsystem for Linux) as that VM. On macOS it uses Apple's virtualisation framework. On Linux, Desktop also uses a VM, for consistency with other platforms, even though the kernel is already there.

The CLI stays on your laptop and talks to the Engine inside the VM. Two commands prove the whole chain works:

docker version
docker run hello-world

docker version prints a Client section (the CLI) and a Server section (the Engine). hello-world pulls a tiny image, starts a container that prints a greeting, and exits.

Licensing is worth checking once: Docker Desktop is free for personal use, education, open-source work and small businesses, but larger companies need a paid subscription. Read the current terms before using it at work.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.