You can add a retention policy to an image in SWR to automatically delete any unused image tags. The policy takes effect immediately after you set it. There are two types of policies:
You can configure filters for your retention policy to prevent certain image tags from being affected by the retention policy.
Parameter | Description |
|---|---|
Policy Type | There are two types of retention policies:
|
Count Limit (Number of days) | When you set Policy Type to Number of days, the value of Count Limit indicates how many days an image tag can be stored. The value should be an integer ranging from 1 to 365. |
Count Limit (Number of tags) | When you set Policy Type to Number of tags, the value of Count Limit indicates the maximum number of the most recent image tags to be retained. The value should be an integer ranging from 1 to 1,000. |
Tag Filter | Enter image tags that you do not want this retention policy to apply to. |
Regular Expression Filter | Enter a regular expression. Image tags meeting this regular expression will not be affected by this retention policy. |
After the retention policy is added, SWR immediately applies the policy and displays deleted image tags (if any) in the Retention Logs area.