Docker Desktop and the Linux VM boundary
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as offline evidence. Before any separately authorized server query, verify the effective endpoint and its trust boundary, including context overrides. Do not change runtime state, mount host data or modify Desktop settings in this exercise.
Synthetic inventory:A: macOS / Desktop / Linux VM / Linux containerB: Windows / Desktop WSL 2 backend / Linux kernel / Linux containerC: native Linux Engine / Linux host kernel / Linux containerD: Linux Desktop / Linux VM / Linux containerOptional read-only inspection (approved local context only):docker context showdocker versionIn A, B and D the workload uses the guest Linux kernel; in C it uses the host Linux kernel. Desktop on Linux is not simply native Engine with a graphical interface: separate contexts and storage may exist. The client sends requests to the selected daemon; a locally installed client does not prove that the engine is local. Compare client and server entries in docker version and verify the context before every lab. The VM has its own resource allocation and may have different filesystem and network behavior from native Engine. Containers still share a kernel with other containers in the same guest. A VM boundary is not a guarantee of application security. No command in this worksheet changes the active context. The WSL 2 backend uses a Linux kernel in a lightweight VM; do not infer a dedicated VM per container. Check local context metadata and environment overrides before docker version contacts the selected daemon. Local Desktop and native Engine can have different image inventories.
Common mistake
Do not assume an image missing in a Desktop context has been deleted from native Engine. The two daemons can have independent image stores.
Manual practice
Draw the kernel and daemon boundaries for a Linux laptop with both Desktop and native Engine. Identify two checks before interpreting an empty image list.
Worksheet: lab-fixtures/docker-desktop-portability/01-vm-model/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Docker Desktop and the Linux VM boundary — Knowledge check
Interpret synthetic cross-platform evidence and identify missing compatibility or entitlement checks.
Which kernel serves a Linux container on macOS Desktop?
Why may image lists differ between Linux Desktop and native Engine?
What should be checked first when the server is unexpected?