Skip to content

[On demand Mirroring] How to check if an image is properly mirrored on Zot #1807

Answered by rchincha
loicalbertin asked this question in Q&A
Discussion options

You must be logged in to vote

@loicalbertin

From my understanding as soon as we will try to GET or HEAD the image manifest or index, it will trigger a synchronization.

If you have only on-demand sync enabled, then yes.

When configured with on demand mirroring, is there a way to just check if an image is cached (all layers presents) in a Zot registry using the REST API without triggering an image synchronization?

The only real way is to do a HEAD/GET, which will return "not found" until it has landed fully. No webhooks-style callbacks etc if that is what you are looking for. If a sync is already in progress, a new one is not scheduled.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hallyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants