Open
Description
zot version
v2.1.1
Describe the bug
The sync code always download every blobs behind a tag even if they are already available locally.
To reproduce
- Setup zot as pass through cache
- Inspect an image index, for example using
skopeo inspect docker://registry.example.com/repo/image:v1.2.3
- Inspect one of image referenced in the index, for example using
skopeo inspect docker://registry.example.com/repo/image:v1.2.3-arm64
- Notice how slow it is although all blobs are already in storage, or check the
repo/image/.sync/
directory to see that it download existing blobs again.
Expected behavior
Blobs from the same repository are not downloaded again when already available in local storage.
Screenshots
No response
Additional context
No response