Skip to content

Push child manifests by digest, not by tag - #1030

Open
sercand wants to merge 1 commit into
apple:mainfrom
sercand:fix-push-child-manifests-by-digest
Open

sercand wants to merge 1 commit into
apple:mainfrom
sercand:fix-push-child-manifests-by-digest

Conversation

@sercand

@sercand sercand commented Nov 23, 2026

Copy link
Copy Markdown

ExportOperation pushed every descriptor with the image's tag as the reference, so each platform manifest was PUT to manifests/ and then replaced by the index on the same tag. Registries that keep one manifest per tag (zot, Gitea, Forgejo) drop the replaced manifest, leaving an index whose children answer MANIFEST_UNKNOWN on pull. Registries that keep replaced manifests reachable by digest hid the bug.

Push everything below the root index by its own digest and only the index by tag, as docker, buildah, skopeo and crane do. This also stops the tag from pointing at a single-platform manifest mid-push.

Fixes apple/container#1001

ExportOperation pushed every descriptor with the image's tag as the
reference, so each platform manifest was PUT to manifests/<tag> and then
replaced by the index on the same tag. Registries that keep one manifest
per tag (zot, Gitea, Forgejo) drop the replaced manifest, leaving an
index whose children answer MANIFEST_UNKNOWN on pull. Registries that
keep replaced manifests reachable by digest hid the bug.

Push everything below the root index by its own digest and only the
index by tag, as docker, buildah, skopeo and crane do. This also stops
the tag from pointing at a single-platform manifest mid-push.

Fixes apple/container#1001

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: container image push fails to register manifest digests referenced in OCI Index, causing 404s on pull

1 participant