Skip to content

[Bug]: Sync download blobs already available in the local repository #2661

Open
@AlbanBedel

Description

@AlbanBedel

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

  1. Setup zot as pass through cache
  2. Inspect an image index, for example using skopeo inspect docker://registry.example.com/repo/image:v1.2.3
  3. Inspect one of image referenced in the index, for example using skopeo inspect docker://registry.example.com/repo/image:v1.2.3-arm64
  4. 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

Metadata

Metadata

Labels

bugSomething isn't workingrm-externalRoadmap item submitted by non-maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions