liveBook · Manning

Docker Desktop

As explained in Kubernetes in Action, Second Edition

Docker Desktop is a desktop application that packages Docker components and provides a local environment for running containers on supported operating systems.

Docker Desktop is a desktop application that packages Docker components and provides a local environment for running containers on macOS or Windows. It sets up a Linux virtual machine containing the Docker daemon and containers, while the Docker CLI remains available on the host operating system. section 2.1.3 section 3.1.1

Use Docker Desktop to:

  • Install a container runtime without manually configuring a Linux virtual machine. section 2.1.3
  • Run containers through the host-installed docker command-line tool. section 2.1.3
  • Enable a single-node Kubernetes cluster from the Settings dialog for local exploration. section 3.1.1
  • Choose Linux containers on Docker Desktop for Windows when following Linux-based container examples. section 2.1.3

Run a first container

After installing Docker Desktop, run `docker run busybox echo "Hello World"`. Docker pulls the busybox image when it is not already local, starts a container, and prints `Hello World`. The same environment can run versioned images such as `redis:7.4.1-alpine`. section 2.1.3

$ docker run busybox echo "Hello World"
Unable to find image 'busybox:latest' locally          #1
latest: Pulling from library/busybox                   #1
7c9d20b9b6cd: Pull complete                            #1
Digest: sha256:fe301db49df08c384001ed752dff6d52b4...   #1
Status: Downloaded newer image for busybox:latest      #1
Hello World         #2

Inspect the command output to see image retrieval, download completion, and the container's printed result. section 2.1.3

Figure 3.2 Kubernetes running in Docker Desktop
figure

Visualize how Docker Desktop hosts the virtual machine, Kubernetes components, and deployed application containers. section 3.1.1

How Kubernetes in Action, Second Edition covers it

How deep it goes
Explains installation, host-versus-VM architecture, basic container execution, and Kubernetes enablement, but not full cluster administration.
Examples
Uses busybox Hello World, Redis images, Docker Desktop settings, and a built-in single-node Kubernetes cluster.
What it assumes
Assumes a supported macOS or Windows computer and basic command-line use, while introducing containers and local Kubernetes setup.
What you can do after
Operate Docker containers and enable a local Kubernetes cluster through Docker Desktop.
How it connects
Connects Docker CLI, Docker Engine, containers, Linux virtual machines, Kubernetes, and container images.

Also explained in

Compare how 3 books explain Docker Desktop →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes in Action, Second Edition. The section links point to the parts of the book it draws on.