Skip to content

Conversation

@tonistiigi
Copy link
Member

Currently attestation chains were always loaded directly from registry on each pull.

This adds cache capability to resolver so all the pulled manifests are first pulled to content store and kept there with GC labels references from the root manifest.

If blob or referrers request already exists in the content store then local response is used without registry requests.

}
}
if _, ok := b.refs[wOpts.Ref]; ok {
b.mu.Unlock()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated possible deadlock.

Currently attestation chains were always loaded directly from
registry on each pull.

This adds cache capability to resolver so all the pulled manifests
are first pulled to content store and kept there with GC labels
references from the root manifest.

If blob or referrers request already exists in the content store
then local response is used without registry requests.

Signed-off-by: Tonis Tiigi <[email protected]>
@tonistiigi tonistiigi force-pushed the attestation-chain-cache branch from cf9b7c8 to 7e17a06 Compare December 20, 2025 01:46
@tonistiigi tonistiigi merged commit a3731a2 into moby:master Jan 6, 2026
140 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants