POST/v1/images/resolve
Auth: API key
Turn an image tag into a digest. python:3.12 comes back as python@sha256:…, ready for POST /v1/snapshots, and you need no container tooling installed to ask. A reference that is already pinned is answered without contacting the registry. For a tag that names several architectures the answer pins what a pull of that tag would fetch and reports the linux/amd64 build beside it; a tag with no linux/amd64 build is refused here rather than at build time. registry_secret names a stored secret holding user:password for a private registry.
Request body ImageResolve · application/json
- imagerequiredstring
- An image reference, a tag or a digest.
- registry_secretstring | null
- A stored secret holding the registry credentials.
Answer 200 · ImageResolved · application/json
- already_pinnedrequiredboolean
- True when the reference was already pinned and no registry was asked.
- digestrequiredstring
- The digest
imagecarries — the index's, for a tag that names several architectures, which is what a pull of that tag fetches. - imagerequiredstring
- The pinned reference: your own name with
@sha256:…on the end. - media_typerequiredstring
- The media type at that digest.
- msrequirednumber
- The round trip to the registry, in milliseconds.
- okrequiredboolean
- platformrequiredstring
linux/amd64.- platform_digeststring | null
- The
linux/amd64build beside the index;nullwhen the tag names a single manifest. - platformsrequiredstring[]
- Every
os/archthe index offers. Empty for a single manifest. - registryrequiredstring
- registry_secretstring | null
- The stored secret the registry was asked with, as it was named in the request.
- repositoryrequiredstring
- tagstring | null
nullwhen the reference named a digest rather than a tag.