quay / quay-operator

Operator for deploying and managing Quay
Apache License 2.0
120 stars 82 forks source link

Delete image from Quay UI not delete image in minio #940

Open donghuuhieu137 opened 1 month ago

donghuuhieu137 commented 1 month ago

Hi Quay team! I'm using your Quay Operator with 3 components: quay, mino and redis When I try to remove an image tag from Quay UI, it gets completely deleted, but it is still there in Minio. How can I remove image tag from both Quay and Minio ? I really appreciate if you guys have solution for this case, Thank you so much

dmesser commented 1 month ago

Hi, while image tags in the Quay UI appear to be deleted immediately a couple of factors come into play when the image layers in the S3 backend (minio) are actually deleted:

If you are certain that no other tags point to the same manifest, you can use the "permanently delete" functionality in the UI to immediately delete an image manifest (be sure PERMANENTLY_DELETE_TAGS is set to True in the Quay config file). This is also available for images that have already be deleted but are still kept in time machine, which can be seen in that Tag History tab in the UI.

donghuuhieu137 commented 1 month ago

Hi, while image tags in the Quay UI appear to be deleted immediately a couple of factors come into play when the image layers in the S3 backend (minio) are actually deleted:

  • whether or not other tags in other repos are pointing to the same image manifest (which in turn shares the same image layers)
  • whether or not the time machine retain period is set to something higher than "seconds"
  • whether the garbage collector background worker has run yet

If you are certain that no other tags point to the same manifest, you can use the "permanently delete" functionality in the UI to immediately delete an image manifest (be sure PERMANENTLY_DELETE_TAGS is set to True in the Quay config file). This is also available for images that have already be deleted but are still kept in time machine, which can be seen in that Tag History tab in the UI.

Thank you so much, I would try it out