Skip to content

docs: document image digest in push response#51792

Open
majiayu000 wants to merge 3 commits intomoby:masterfrom
majiayu000:29865-doc-push-digest-response
Open

docs: document image digest in push response#51792
majiayu000 wants to merge 3 commits intomoby:masterfrom
majiayu000:29865-doc-push-digest-response

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Summary

Document that the image push response stream includes the image digest in the final JSON object's aux field.

Changes

Added documentation to the /images/{name}/push endpoint explaining:

  • The response is a stream of JSON objects
  • The final object contains the digest in an aux field
  • The digest can be used to reference the pushed image

This allows clients to obtain the content-addressable digest of the pushed image without making an additional API call.

Fixes #29865

Document that the image push response stream includes the image digest
in the final JSON object's `aux` field. This allows clients to obtain
the content-addressable digest of the pushed image without making an
additional API call to inspect the image.

Fixes moby#29865

Signed-off-by: majiayu000 <[email protected]>
Copy link
Copy Markdown
Contributor

@vvoland vvoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This is only used by the content trust which is deprecated.

Aux is a bit hacky and I think it would be better to actually come up with a proper way to propagate this via a regular JSON message (and exposing it nicely through the clien'ts ImagePushResponse).

@majiayu000 majiayu000 force-pushed the 29865-doc-push-digest-response branch from 73cb860 to 380d02c Compare January 5, 2026 14:39
@majiayu000 majiayu000 force-pushed the 29865-doc-push-digest-response branch from 9344fab to eb41389 Compare January 5, 2026 15:04
@vvoland vvoland modified the milestones: 29.2.0, 29.3.0 Jan 15, 2026
@vvoland vvoland modified the milestones: 29.3.0, 29.2.1 Jan 29, 2026
@vvoland vvoland modified the milestones: 29.3.0, 29.4.0 Feb 27, 2026
@vvoland vvoland removed this from the 29.4.1 milestone Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api: no documented way to get digest when pushing image

3 participants