← All notes

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

Claims

Sources

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

Permanent ID: iil:note:pv485v04

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.},
}

Markdown

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.

All artifact files (JSON index)

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.