Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding --skip-existing flag to sync #2426

Open
marakomer opened this issue Sep 25, 2024 · 1 comment
Open

adding --skip-existing flag to sync #2426

marakomer opened this issue Sep 25, 2024 · 1 comment

Comments

@marakomer
Copy link

We would like to use skopeo for registry syncing, but without support to skipping existing tags in the destination the amount of resulting docker pulls would be too large on a daily basis (our use-case is very simple - daily syncing of images from dockerhub repo to ghcr).

We have tried running it both in dry-run and without and dockerhub rate-limiting is choking it very quickly. Please let me know if there is already an existing work-around!

@mtrmac
Copy link
Contributor

mtrmac commented Sep 25, 2024

Thanks for reaching out.

The code is already supposed to avoid syncing images that exist on the destination, based on manifest comparison — but that does require reading at least the manifests.

Removing even more accesses would require making an assumption, necessarily by user opt-in, that once a tag exists, it is never moved to a different image. And a single global tag is unlikely to be ideal for that, at least because the practice of having a :latest tag is very widespread; so we would need a more complex option. That’s tracked in #1498 .

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

No branches or pull requests

2 participants