The page has been translated by Gen AI.

Managing Image Tag Deletion Policies

The user can register and manage the image tag deletion policy.

Managing image tag deletion policies

The image tag deletion policy refers to the policy that automatically deletes an image when a certain period of time has passed since it was first pushed to the repository. If the image tag deletion policy is enabled, the image tags (digest) stored in the Container Registry will be automatically deleted according to the set deletion policy.

Notice
  • After enabling the deletion policy and setting it to use, the image tag (digest) to which the deletion policy is first applied will be deleted within a maximum of 3 days (72 hours). Subsequent image tags (digests) to which the deletion policy is applied will be deleted within a maximum of 1 day (24 hours).
  • Image tags (digests) to which the deletion policy is applied are permanently deleted and cannot be recovered.

Support deletion policy information

Describes policy information that supports deleting image tags.

Support Policy

It supports a policy that allows you to set automatic deletion and period for image tags (digest).

Support Policy
Untagged Image
Old Image
Table. Image tag deletion support policy type

Set the image tag (digest) deletion policy

To set the image tag (digest) deletion policy, follow these steps.

  1. Click All services > Container > Container Registry menu. It moves to the Service Home page of Container Registry.
  2. Service Home page, click the Image menu. It moves to the Image list page.
  3. Click the gear button at the top of the Image 목록 page. The Registry/Repository 설정 popup window opens.
  4. Registry/Repository settings In the popup window, select the Registry name and Repository name where the Image to be set for the deletion policy is stored, and click the OK button.
  5. Image list page, click the resource (Image) to set the deletion policy. Move to the Image details page.
  6. Image Detail page’s Detail Info tab, click the Edit icon of the Delete Image Tag item. The Edit Delete Image Tag popup window will open.
  7. Image Tag Deletion Modification In the popup window, enter and select the necessary information and activation status, and click the Confirm button.
    • Delete policy activation is set to Use, the image tag (digest) will be automatically deleted according to the set delete policy.
    • Select the deletion policy to apply and enter the period from when the image was first pushed to the repository to when it will be automatically deleted.
  8. When the update notification popup window opens, click the Confirm button.
    • When the modification is complete, Image tag deletion modification was successful message will be displayed.
Reference
You can also set a deletion policy in the Repository that plays the role of a template for the Image. When setting a deletion policy in the Repository, the set deletion policy is applied equally to all Images stored inside.

Image tag (digest) deletion policy test

To test the image tag (digest) deletion policy, follow these steps.

  1. Click All services > Container > Container Registry menu. It moves to the Service Home page of Container Registry.
  2. On the Service Home page, click the Image menu. It moves to the Image list page.
  3. Click the gear button at the top of the Image 목록 page. The Registry/Repository 설정 popup window will open.
  4. Registry/Repository Settings In the popup window, select the Registry name and Repository name where the Image to be set for the deletion policy is stored, and click the Confirm button.
  5. On the Image List page, click the resource (Image) to test the deletion policy. It moves to the Image Detail page.
  6. Image Detail page, click the Deletion Policy Test tab. Move to the Deletion Policy Test tab page.
  7. Deletion Policy Test tab page, to test the deletion policy set, click the Policy Test button at the bottom of the deletion target Tags.
  8. When the deletion policy test notification popup window opens, click the Confirm button.
    • When the test run application is completed, the phrase The deletion policy test run application has been completed will be displayed.
    • After the test is completed, the image tags (digest) that are the target of the deletion policy will be displayed in the Deletion Target Tags section.
Managing Image Security Vulnerabilities
Using Container Registry with CLI