All Products
Search
Document Center

Container Registry:Clean up OSS buckets

Last Updated:Dec 27, 2023

After you delete image tags in the Container Registry console, the image tags still exist in an Object Storage Service (OSS) bucket. If you do not delete the image tags in the OSS bucket in time, you may be charged for additional costs. You can execute an artifact deletion task to delete the image tags from the OSS bucket to release the occupied storage space.

Precautions

  • You can clean up OSS buckets only for Container Registry Enterprise Edition instances. When you clean up OSS buckets for a Container Registry Enterprise Edition instance, expired image tags in all image repositories are deleted from OSS buckets. Expired chart tags in all chart repositories are not deleted from OSS buckets.

  • You cannot push images to image repositories while an artifact deletion task is being executed. However, you can still pull images from image repositories. After the artifact deletion task is completed, you can push images to image repositories.

Procedure

  1. Log on to the Container Registry console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, click Instances.

  4. On the Instances page, click the Enterprise Edition instance that you want to manage.

  5. On the management page of the Container Registry Enterprise Edition instance, choose Instances > Garbage Collection.

  6. On the Garbage Collection page, click Execute.

  7. In the Confirmation dialog box, select Confirm to clean up and click Confirm.

    Important

    The first time you delete artifact tags, click submit ticket in the Confirmation dialog box to add your Alibaba Cloud account to the whitelist.

    Note

    On the Garbage Collection page, you can view the size of the images that you delete in real time.

Result

On the Garbage Collection page, view the artifact deletion task. If Completed is displayed in the Cleanup Status column, the artifact deletion task is complete.