-
Notifications
You must be signed in to change notification settings - Fork 39
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 manifests via registry api #1759
Comments
Delete has been disabled in hub registry. If needed please delete tag from Hub API |
Closing as non-issue. |
Both api's apparently are protected by the same authenication/authorization mechanism but a specific api is needed for docker hub? Could you elaborate on the reason not to trust delete at the registry api level? |
Disabling delete was probably done before me but I am guessing it is because that API was getting implemented at that time. Blocking deletes is also safer as user have called it by mistake. Deleting from Hub allows us to fine tune the delete. Note that although you are free to call registry APIs directly we do not guarantee that every registry API will be implemented. Our primary focus is to ensure it works seamlessly with Docker CLI. |
If operations needs to go trough: A documentations of the API would be realy nice! |
Btw the url that seem to work is not |
I found this issue when trying to delete tags from the Docker registry instead of DockerHub. If I curl the DockerHub API, I only have
But if I do the same on the registry directly, I got much more answer
I was used to clean my repositories by using that query.
When I saw that registry still contains the old tags, I tried to delete them with the manifest references but encountered the same issue than @cblomart . Is this something expected? My main point is that when using flux with image update automation, it founds tags that are still listed by the Docker Registry but not available from the DockerHub. |
Problem description
I am building a opensource project with CI/CD.
Every commit is builded and pushed to docker hub with the short commit number as their tag.
I wanted to find a way to cleanup old commit builds but keep a few (i.e. last 15 days and at least 3).
i.e.
a little tool that would take a few argument:
I looked at registry api against
registry-1.docker.io
. And i am able to list tags with details without any issues.Delete manifests is apparently supported there.
doing a delete on
https://registry-1.docker.io/v2/{repo}/maniftests/{digest}
responds with:From my reading of it, it seems that delete has not been disabled on the backend registry.
The text was updated successfully, but these errors were encountered: