Repository navigation
fix(watcher): treat locally built images as local under the containerd image store (1.7 backport) - #1517
Merged
Conversation
…d image store Fixes #1506. The containerd store reports name@digest in RepoDigests for every named image, local or pulled (moby collectRepoTagsAndDigests), so RepoDigests cannot tell them apart. On Engine API 1.53+ inspect carries Identity: a non-empty Pull means pulled, an Identity without Pull (Build or Signature only) means local, and no Identity on a containerd-store image (Descriptor present) means never pulled. Older APIs and the classic store keep the empty-RepoDigests rule. (cherry picked from commit 3bfa600)
scttbnsn
requested review from
ALARGECOMPANY and
biggest-littlest
as code owners
October 29, 2026 03:49
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Oct 29, 2026
Closed
This branch was successfully deployed
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.
Backport of #1512 to 1.7. Fixes #1506 on 1.7, where the reporter first saw it on 1.7.0.
Under Docker's containerd image store, every named image gets
name@digestinRepoDigests, local or pulled. drydock only treated an image as local when that list was empty, so locally built images were looked up on Docker Hub every scan and logged a 401.The new
docker-image-origin.tsreads the imageIdentitythat inspect returns from API 1.53. A pull source means pulled. Otherwise the image is local, as long as it's a containerd-store image on API 1.53 or newer. Older APIs and the classic store keep the empty-RepoDigestsrule.It's the same code as 1.8. The only manual edit was an import conflict in
docker-image-details-orchestration.ts, and the CHANGELOG was redone for 1.7.1611 tests pass on 1.7.