Docker Buildx exporters: image, registry, local, tar, OCI, and docker outputs
Answer: Exporters save your build results to a specified output type. You specify the exporter with the --output option, and --load and --push can infer the exporter settings.
Exporter types
image writes the result as a container image.
registry writes a container image and pushes it to the given registry.
local writes the build root filesystem into a local directory.
tar packs that filesystem into a local tarball.
oci writes the result to the local filesystem in the OCI image layout.
docker writes the result in Docker Image Specification v1.2.0 format.
cacheonly runs the build and records cache but does not export an image.
The usual command shape is docker buildx build --tag <registry>/<image> --output type=<TYPE> .
When Buildx infers the exporter
Most common builds do not need an explicit exporter.
You specify one when you want to customize the output or save it to disk.
--load and --push let Buildx infer the exporter settings.
With --push and --tag, Buildx uses the image exporter and configures it to push to the named registry.
The docker exporter can still load an image into Docker Engine so docker run and docker images can see it without a registry push.
Which engine image store receives the image depends on the target Docker context: a local context uses the local store, and a remote context uses the remote daemon's store.
If you omit an output, Buildx can leave an untagged result in the cloud build cache and not load it into Docker Engine.
On a single-platform build that runs on one cloud node, a --tag is enough for Buildx to load the image on its own.
--load is shorthand for --output type=docker.
See also
Claims
- id: C1 claim: Choose an exporter with the --output option. source: S1 evidence: "You specify the exporter to use with the --output CLI option"
- id: C2 claim: --load and --push can select exporter settings automatically. source: S2 evidence: "The '--load' and '--push' options allow Buildx to infer the exporter settings to use."
- id: C3 claim: --load means --output type=docker. source: S1 evidence: "The --load flag is shorthand for --output type=docker ."
Sources
- [S1] Exporters overview. Docker, Inc.. https://docs.docker.com/build/exporters/ . License: Apache License 2.0. Accessed 2026-11-26.
- [S2] Exporters overview (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/exporters/_index.md . License: Apache License 2.0. Accessed 2026-11-26.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Exporters overview; Docker, Inc., Exporters overview (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., Exporters overview; Docker, Inc., Exporters overview (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Buildx exporters: image, registry, local, tar, OCI, and docker outputs." iinventedlight Library, iil:note:zpjfxct6, version of 2026-11-26. https://iinventedlight.com/library/notes/docker-build-exporters/. License: CC-BY-4.0.
@misc{iil_note_zpjfxct6,
author = {{iinventedlight}},
title = {{Docker Buildx exporters: image, registry, local, tar, OCI, and docker outputs}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-26},
url = {https://iinventedlight.com/library/notes/docker-build-exporters/},
note = {Permanent ID iil:note:zpjfxct6. 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-exporters.schema.json (schema; CC-BY-4.0)
- docker-build-exporters.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-exporters.md.