Skip to content

fix(watcher): treat locally built images as local under the containerd image store (1.7 backport) - #1517

Merged
scttbnsn merged 2 commits into
dev/v1.7from
fix/v1.7-containerd-local-images
Oct 29, 2026
Merged

scttbnsn merged 2 commits into
dev/v1.7from
fix/v1.7-containerd-local-images

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

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@digest in RepoDigests, 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.ts reads the image Identity that 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-RepoDigests rule.

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.

cd app && npx vitest run --coverage.enabled=false watchers/providers/docker

1611 tests pass on 1.7.

…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)
@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 29, 2026 3:51am UTC
drydockdemo-website Ready Ready Preview Oct 29, 2026 3:51am UTC

@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 6015f6f and a82e6ae.

Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
Files selected for processing: 4
  • app/watchers/providers/docker/docker-image-details-orchestration.test.ts
  • app/watchers/providers/docker/docker-image-details-orchestration.ts
  • app/watchers/providers/docker/docker-image-origin.test.ts
  • app/watchers/providers/docker/docker-image-origin.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit 24e9e2c into dev/v1.7 Oct 29, 2026
32 of 33 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.7-containerd-local-images branch October 29, 2026 04:17

This branch was successfully deployed

2 active deployments
Preview – drydock-website — a82e6ae9 Deployed Oct 29, 2026 by vercel[bot]
Preview – drydockdemo-website — a82e6ae9 Deployed Oct 29, 2026 by vercel[bot]
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.

1 participant