Docker builders: BuildKit daemons, drivers, and the selected builder
Answer: A builder is a BuildKit daemon that runs your builds. BuildKit walks the Dockerfile steps and produces an image or other artifacts.
Default builder and drivers
Docker Engine starts a default builder that uses the bundled BuildKit library and needs no extra setup.
That default builder is bound to the current daemon context, so switching Docker context also switches what default refers to.
Buildx implements a concept of build drivers to refer to different builder configurations. The daemon-created default uses the docker driver, which is the bundled BuildKit library.
docker-container creates a dedicated BuildKit container using Docker. also kubernetes creates BuildKit pods in a Kubernetes cluster. remote also connects directly to a manually managed BuildKit daemon.
Selected builder, and the two build commands
You can name one with --builder or the BUILDX_BUILDER environment variable. If you don't specify a builder, the selected also builder is used.
Use the docker buildx ls command to see the available builder instances. An asterisk next to a builder name indicates the selected builder.
To switch between builders, use docker buildx use with a name, after which that builder is automatically selected.
docker build is an alias of docker buildx build, but they differ: the client and BuildKit daemon are decoupled, so one client can use multiple builders, even remote ones.
To use the docker build command with a non-default builder, specify the builder with the --builder flag or the BUILDX_BUILDER environment variable.
See also
- docker-build-builders-drivers-docker-container
- docker-build-builders-drivers-kubernetes
- docker-build-buildkit-configure
Claims
- id: C1 claim: A builder is a BuildKit daemon used to run builds. source: S2 evidence: "A builder is a BuildKit daemon that you can use"
- id: C2 claim: The default builder uses bundled BuildKit and needs no setup. source: S1 evidence: "This builder requires no configuration"
- id: C3 claim: Drivers include docker, docker-container, kubernetes, and remote. source: S2 evidence: "kubernetes`: creates BuildKit pods in a Kubernetes cluster"
- id: C4 claim: docker build keeps using the Engine default unless you name another. source: S1 evidence: "always defaults to using the default builder"
- id: C5 claim: A star in docker buildx ls marks the selected builder. source: S2 evidence: "asterisk (
*) next to a builder name indicates"
Sources
- [S1] Builders. Docker, Inc.. https://docs.docker.com/build/builders/ . License: Apache License 2.0. Accessed 2026-11-27.
- [S2] Builders (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/builders/_index.md . License: Apache License 2.0. Accessed 2026-11-27.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Builders; Docker, Inc., Builders (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Builders; Docker, Inc., Builders (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker builders: BuildKit daemons, drivers, and the selected builder." iinventedlight Library, iil:note:pv485v04, version of 2026-11-27. https://iinventedlight.com/library/notes/docker-build-builders/. License: CC-BY-4.0.
@misc{iil_note_pv485v04,
author = {{iinventedlight}},
title = {{Docker builders: BuildKit daemons, drivers, and the selected builder}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-27},
url = {https://iinventedlight.com/library/notes/docker-build-builders/},
note = {Permanent ID iil:note:pv485v04. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-build-builders.schema.json (schema; CC-BY-4.0)
- docker-build-builders.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-build-builders.md.