Docker Desktop Portability
Portability requires an image variant for the target operating system and CPU architecture, plus compatible application binaries and libraries. Emulation is a distinct execution mode, not proof of native compatibility.
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 platform inventory:Laptop A: linux/arm64 engine on Apple silicon DesktopCI B: linux/amd64 native runnerImage index: linux/amd64 and linux/arm64Variant arm64 application binary: arm64Variant amd64 application binary: amd64Legacy image: linux/amd64 onlyOptional read-only command: docker image inspect lab-image:reviewThe multi-platform index lets the engine select a compatible manifest for its requested platform. A correct index is necessary but not sufficient: binaries copied from a build stage must match the target architecture and relevant ABI, and runtime dependencies must be available. The legacy image lacks a native ARM64 variant; it might execute through a configured emulator, but performance and feature coverage must be measured and it may fail. A platform override selects a target; it does not convert an incompatible binary. Use BUILDPLATFORM and TARGETPLATFORM concepts from the Buildx chapter when reviewing cross-compilation, and test the actual image on both native architectures before a portability claim. Record OS, architecture, digest, runner and whether emulation occurred. The optional inspect command presumes a reviewed local fixture tag; it is not a request to pull an image. A single-platform image need not have an index. Record the selected manifest digest as well as an index digest when present. A matching OS/architecture tuple or successful emulated test does not prove a native test passed; the helper only records supplied evidence.
Common mistake
A successful AMD64 build on an ARM64 laptop under emulation is not evidence that the ARM64 image variant runs natively.
Manual practice
Create a test matrix for the two image variants and legacy image. Mark which cells require native testing, which may need emulation, and which remain unsupported until evidence is collected.
Worksheet: lab-fixtures/docker-desktop-portability/06-architecture/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
ARM64 versus AMD64 compatibility — Knowledge check
Interpret synthetic cross-platform evidence and identify missing compatibility or entitlement checks.
What should a native ARM64 application binary match?
What does a platform override do?
What supports a native portability claim?