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

skopeo sync should delete in the destination what's missing from the source #2503

Open
ferferga opened this issue Jan 25, 2025 · 0 comments
Open

Comments

@ferferga
Copy link

Hello

I would like to have an exact 1:1 mirror of two repositories using Skopeo. However, from the skopeo sync description:

Synchronize images between registry repositories and local directories. Synchronization is achieved by copying all the images found at source to destination - useful when synchronizing a local container registry mirror or for populating registries running inside of air-gapped environments.

What's the difference with skopeo copy then?

In my opinion, this command should work like rclone's sync. From their docs:

Sync the source to the destination, changing the destination only. Doesn't transfer files that are identical on source and destination, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary (except duplicate objects, see below). If you don't want to delete files from destination, use the copy command instead.

Is there any way I can do what I want? This is the command that I believe gets closer to what I want to achieve:

skopeo sync -a --preserve-digests -s docker://ghcr.io/my/image -d docker://docker.io/my/image

@ferferga ferferga changed the title slkopeo sync should delete in the destination what's missing from the source skopeo sync should delete in the destination what's missing from the source Jan 25, 2025
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

1 participant