Buildx builders and drivers
Buildx is the Docker CLI interface for advanced builds; BuildKit is the backend that solves the build instructions. A builder is a configured instance that may contain one or more nodes. The driver determines where and how the backend runs. Before choosing a builder, decide where the resulting image must go.
Worked example
Use this worksheet offline. Names and values are fictional; no live builder, credentials, Docker daemon or external requests are needed. Commands are illustrations, not observed results. Before separately authorized verification, identify the effective Docker endpoint, client credential configuration, builder and registry destination as applicable. Never disclose credential files or private context details.
Offline inventory (fictional)A: docker -> local daemonB: docker-container -> dedicated BuildKit containerC: remote -> separately managed BuildKitD: kubernetes -> BuildKit pods
Read-only inspection syntax for an approved lab:docker buildx inspectFor an ordinary local build, A may be sufficient. B separates the build backend from the daemon library, but you must deliberately choose an output. A supported single-platform build with --load makes an image available in the local image store; a registry output with --push transfers it to a registry and requires separate permission. Without an explicit output, non-default drivers may leave only cached results. C and D introduce different trust and administration boundaries. Check the selected builder, its supported platforms and output capabilities before building. Do not start a remote builder merely to inspect this lesson. Supported custom drivers can be configured for automatic loading. Therefore no explicit exporter is not always equivalent to cache-only. Check effective default-load and output settings, and verify the result in the intended store.
Common mistake
A successful build does not necessarily mean docker image ls will show its result. Check the exporter and the selected daemon.
Manual practice
Choose a driver and output for a local single-platform smoke test. Explain why remote builders require a separate trust review.
Worksheet: lab-fixtures/docker-buildx-multi-platform/01-builders-drivers/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Buildx builders and drivers — Knowledge check
Reason about multi-platform build reasoning.
What does a driver determine?
A dedicated builder has no selected output or automatic loading configured. What may be the result?
What is a suitable local single-platform output?