How to delete a single tag from a remote repository, if there are multiple ones pointing to the same manifest? #1594
Unanswered
Exagone313
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When you pass a tag to
oras manifest delete
and that multiple tags point to the same manifest, this command will delete all the tags associated with this manifest.Is there a way to only delete the tag if there are multiple tags pointing to the same manifest?
For building a workaround, is there a way to delete a single tag (without the associated manifest)? Apparently it can be done by sending a
DELETE
HTTP request to${REGISTRY}/v2/${REPOSITORY}/manifests/${TAG}
. That way, a non-atomic way to do this job would be to list the tags and run a different delete command if there are more than one tags. (I think there isn't an atomic way to do this with the registry API, unless you rely on garbage collecting untagged manifests.)I have looked at the source code and I don't think it exists, could be transformed into a feature suggestion issue.
Beta Was this translation helpful? Give feedback.
All reactions