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

Provide a way to add a tag to an existing image #173

Open
jsoref opened this issue Jul 1, 2022 · 2 comments
Open

Provide a way to add a tag to an existing image #173

jsoref opened this issue Jul 1, 2022 · 2 comments

Comments

@jsoref
Copy link
Contributor

jsoref commented Jul 1, 2022

As described in #171, I have a multiarch image and want to add a new tag to it.

I'd really love to be able to just use manifest-tool tag <source-tag> <dest-tag> and have it do what I want.

I have a jsoref@retag-image script as a proof of concept.

-- It doesn't technically do the right thing for a single image, as it creates a manifest pointing to a single image instead of just adding a tag to the image, but I'm not sure there's a better way, and it saves me from downloading a 500+mb image when I don't need the image for my task. -- While the distinction in object types is technically observable, I suspect it doesn't practically matter.


A manifest-tool copy <source-tag> <dest-tag> in the case where I need to cross repositories would also be great. (Although, I could understand if manifest-tool thinks that's outside its scope.)

@tianon
Copy link
Contributor

tianon commented Jul 1, 2022

You might appreciate regclient or crane 👀

(https://github.com/regclient/regclient, https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md)

@jsoref
Copy link
Contributor Author

jsoref commented Jul 1, 2022

I've used crane for other tasks... (It's on my todo list). Adding regclient.

Indeed, it seems that I don't need manifest-tool here, although it would be nice if the front page had refs. As finding the right tool for these tasks is way more painful/frustrating than it should be...

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