-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Feat]: ZUI: Add ability to delete images and repositories from ZUI #364
Comments
Thanks for opening up a feature request @bfreidank , I'm not sure if this feature would fit for the current idea behind zui. Originally zui was designed as a way to browse a zot registry more easily, in a read-only manner. All the image data operations like adding/updating/deleting were not planned to be part of zui and are performed through a cli tool. Perhaps @rchincha can chime in, do we maybe want this for a future release? |
@raulkele Thank you for noting that this behavior/functionality is outside the current intended scope. Would you be able to provide usage instructions for the cli tool for image data operations for adding/updating/deleting? The reason I ask is looking at the zli and skopeo documentation it doesn't appear updating or deleting are part of those tools. Thank you |
We do offer the cli commands to pull images in zui. Having an admin specific interface is one of the goals we currently have. Perhaps this would fit there. In the meantime maybe @rchincha and @mbshields can see if this scenario could be added to the documentation. |
@bfreidank Using The safest option IMO is: curl -X DELETE -u https://server-address:port/v2//manifests/ |
@rchincha Thank you for confirming Ah that is good to know that Thank you for your preferred safest option to remove images. |
@rchincha
|
If you are experiencing leftover images in the DB after deleting imaging using the manifests endpoint, it is a bug. Just to be sure, a more precise command example is: |
Going through the following scenario: Check tags available for alpine:
Initiate delete of latest image: Check tags available for alpine:
The alpine repo with no tags shows in the following locations:
If you remove the entry manually in the file system it gets removed from /v2/_catalog however the entry in the ZUI with no tags stays in place indefinitely. Expected behavior: When no image tags present repository with name would be cleaned up and removed from ZOT data directory and ZUI |
OK, understood the request. It is not implemented at the moment, we will look into it. |
Sounds great! Thank you @andaaron for adding it to features to be considered. |
Should we open an issue in the zot repo and close this one? |
We have project-zot/zot#1634, which does not have all these details, but I think it's the same request. |
Is your feature request related to a problem? Please describe.
Add ability to delete images and repositories from ZUI and cleanup data from backend data directory.
Describe the solution you'd like
Add ability in ZUI to remove images or repositories. Recommend adding validation step before removal and RBAC role to allow deletes for users.
Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered: