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

Synchronizing to a container registry with a different image name on DESTINATION #1998

Open
mmarchini opened this issue May 12, 2023 · 5 comments
Labels
kind/feature A request for, or a PR adding, new functionality stale-issue

Comments

@mmarchini
Copy link

Is it possible to use skopeo sync to sync images from a container registry into a different container registry, while using a different image name in the destination registry? For example:

$ skopeo sync --src docker --dest docker old.somedockerregistry.net.net/oldNamespace.oldImage new.somedockerregistry.net/newNamespace/newImage

The example above would result in the following content for destination registry:

REPO                                                                    TAGS
new.somedockerregistry.net/newNamespace/newImage/oldNamespace.oldImage  latest

Is it possible (via parameters or something) to have the following content for destination registry instead?

REPO                                              TAGS
new.somedockerregistry.net/newNamespace/newImage  latest
@mtrmac
Copy link
Contributor

mtrmac commented May 15, 2023

Thanks for reaching out.

I’m afraid that’s not currently possible (other than not using skopeo sync, and manually plumbing together skopeo list-tags and skopeo copy).

Adding a mode like that, with no automated mapping, is a long-standing RFE, primarily centered around the need to change the YAML input format; e.g. #1792 points at some of the earlier work and discussions

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@mmarchini
Copy link
Author

Gotcha, I think I'll go with skopeo list-tags and skopeo copy then, thanks!

@mtrmac mtrmac added the kind/feature A request for, or a PR adding, new functionality label Jun 30, 2023
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@BDeus
Copy link

BDeus commented Jun 26, 2024

using list-tags en copy provide the same result as if it was run with sync ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for, or a PR adding, new functionality stale-issue
Projects
None yet
Development

No branches or pull requests

3 participants