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

Delete at least the tag if using ignore option #7

Open
derwebcoder opened this issue Aug 31, 2017 · 3 comments
Open

Delete at least the tag if using ignore option #7

derwebcoder opened this issue Aug 31, 2017 · 3 comments

Comments

@derwebcoder
Copy link
Contributor

Hi,

the ignore option will not delete a digest if two or more tags are pointing to it.

Is there a way in this case to delete the tag (not the digest) at least? Otherwise the tag will never be deleted and the same problem occurs the next time we execute cleanreg. In the worst case cleanreg can not delete digests anymore, because there are to many digests with two or more tags.

I would implement this. But i do not find any registry api request which seems to delete a tag. Do you know if there is a way to do this?

@hcguersoy
Copy link
Owner

Hello Marvin,

yes, this is the problem: in v2 there is AFAIK none API method available to delete a tag. You have to do everything with the digests. And then you delete a digest, you will delete the layer.
May something has changed in the never versions of the registry, but this is why I've implemented it by this way.

@hcguersoy
Copy link
Owner

There is a discussion regarding a tags API, Registry 2.7 set as the implementation milestone. Lets wait.
distribution/distribution#2170

@hcguersoy
Copy link
Owner

hcguersoy commented Feb 22, 2022

See this comment in the according PR #3427 for this topic.

This will be supported with an upcoming new version of the registry which implements the OCI distribution spec 1.0.0.

This may result in additional changes on our side to make cleanreg support new versions of the registry.

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