Fix multiarch image push tag for containerd snapshotter#49949
Merged
thaJeztah merged 1 commit intomoby:masterfrom May 19, 2025
Merged
Fix multiarch image push tag for containerd snapshotter#49949thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah merged 1 commit intomoby:masterfrom
Conversation
Member
vvoland
reviewed
May 13, 2025
Contributor
vvoland
left a comment
There was a problem hiding this comment.
Thanks, looks good! I left a suggestion on the implementation though.
Signed-off-by: Henry Wang <henwang@amazon.com>
Member
|
@vvoland @dmcgowan PR was updated; PTAL. Also if this PR is indeed addressing docker/cli#5874 or if I'm very off 🙈 😅 |
Contributor
|
Oh, thought I review it yesterday! Yeah I think it might help, although initially I considered the cause for this issue to be different 🤔 |
dmcgowan
approved these changes
May 16, 2025
Member
I'm not sure about that specific registry, but with this change Moby should no longer be pushing to the same manifest endpoint multiple times, solving any immutable tag issues or PUT request duplication. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
When the "containerd-snapshotter" feature is enabled and pushing multiarch images, I would expect all platform specific image manifest to be pushed by digest, but only the top level manifest index being pushed by tag. But in the current implementation in moby, all of them are pushed by tag.
- How I did it
Replicate the similar logic in containerd here: https://github.com/containerd/containerd/blob/main/client/client.go#L485-L488
- How to verify it
Turn on debug level and verify the logs.
Steps:
Logs before fix:
Logs after fix: