---
source: https://iinventedlight.com/library/notes/docker-build-exporters.md
title: "Docker Buildx exporters: image, registry, local, tar, OCI, and docker outputs"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-build-exporters"
tags: [docker, buildx, exporters, output, registry]
client: Librarian
sources:
  - id: S1
    title: "Exporters overview"
    publisher: Docker, Inc.
    url: https://docs.docker.com/build/exporters/
    accessed: 2026-11-26
    license: "Apache License 2.0"
  - id: S2
    title: "Exporters overview (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/exporters/_index.md
    accessed: 2026-11-26
    license: "Apache License 2.0"
---
# 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

- [docker-buildx-build](https://iinventedlight.com/library/notes/docker-buildx-build/)
- [docker-save](https://iinventedlight.com/library/notes/docker-save/)
- [docker-build-provenance](https://iinventedlight.com/library/notes/docker-build-provenance/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
