buildx_imagetools_inspect
Inspect registry image manifests without pulling, including multi-platform OCI indexes, attestations, and annotations. Get human-readable trees, raw JSON, or templated output for parsing.
Instructions
Inspect a manifest in a registry without pulling.
Replaces docker manifest inspect. The standalone docker manifest command is in
maintenance mode and lacks support for OCI image indexes, attestations, and
annotations - buildx imagetools inspect is the path forward and handles both
single-platform manifests and multi-platform manifest lists / OCI indexes. Uses the docker
CLI's credential store; registry_manifest answers the same question over direct HTTPS
with no daemon or plugin.
Does not raise on a non-zero CLI exit (a missing buildx plugin or a timeout still raises) - inspect
returncode/stderr in the result.
Args:
image: Image reference, e.g. "alpine:3.19" or "ghcr.io/org/repo@sha256:..."
raw: Return the raw manifest bytes (a JSON document) instead of the human-rendered tree
format: Go template format string (mutually exclusive with raw)
builder: Override the active builder
Returns:
dict: {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}. With raw=True or
format="{{json .}}", stdout is a JSON document the caller can parse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| image | Yes | ||
| format | No | ||
| builder | No |