-
Notifications
You must be signed in to change notification settings - Fork 795
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
RFE: Support for removing tags #489
Comments
I’m afraid the registry API (both as specified, and as actually implemented in docker/distribution) does not provide an operation removing a tag; only the whole-image deletion is possible. Once a tag exists, you can only redirect the tag to a different (possibly already existing) image by pushing a new image to that tag. (So, it would probably be possible to generate a fresh empty image with a guaranteed-unique manifest digest, redirect the |
@mtrmac I actually just loaded up this ticket to make a similar comment. I had thought the registry API had this, and I went to write a Bodhi workaround to use what I thought existed, and found that it does not exist. Your workaround idea might be viable though, thanks for the tip. I guess we can close this. |
FWIW it might be easier to redirect the |
Haha, I tried your suggestion of pushing an empty image to the tag, and then deleting it, and it did end in removing the tag without deleting the original image. Thanks! Only problem is that there isn't a great way for Bodhi to have an empty image to use to push to a registry to perform that workaround. I much prefer not to keep an empty image as files in Bodhi's git, because I don't want "magic files" in my repo that I generated with a tool. I'd rather have the building of Bodhi also build it an empty image, but the problem there is that building an empty image requires docker or skopeo, and both of those require root, which I don't have when building Bodhi in Koji. Sigh. |
I guess that depend on what your definition of “generated” is… I imagine generating an empty tar.gz as such is easy enough, and the minimal |
Also skopeo does not require root. |
@rhatdan Ah yes, I had meant to say it requires docker or buildah, and just mistyped skopeo. |
Greetings!
I'm working on adding support for Bodhi to manage container buildroot overrides. In doing so, I'm having Bodhi add a "build" tag to Fedora's container registry when the buildroot override is in place. However, buildroot overrides expire, and when this happens I need a way to remove that "build" tag from the registry.
I thought that maybe the
skopeo delete
would do what I want, but it turns out that it removes the image, not the tag (so it deletes all the other tags too).Could we add a
skopeo untag
command, or possibly just a--untag-only
flag to the existingdelete
command, or something along those lines?The text was updated successfully, but these errors were encountered: