Conversation
82d4f2d to
6561a17
Compare
When resolving a reference that is both a Named and Digested, it could be resolved to an image that has the same digest, but completely different repository name. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> (cherry picked from commit 48fc306) Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
6561a17 to
3c5c192
Compare
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.
When resolving a reference that is both a Named and Digested, it could be resolved to an image that has the same digest, but completely different repository name.
(cherry picked from commit 3318736)
This caused a bunch of test failing with
Error response from daemon: No such image: busybox:latestwith the containerd integration enabled (#45232) because thetestEnv.Cleandeleted the source busybox image instead of the new tag created in test.Example failing tests
- What I did
Fix digested and named reference being resolved to an image with different repository
- How I did it
- How to verify it
Test: TestRemoveByDigest
manually:
Before:
After:
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)