Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.91 KB

ts_image_list_retention.md

File metadata and controls

38 lines (25 loc) · 1.91 KB
copyright lastupdated keywords subcollection content-type
years
2017, 2024
2024-08-01
registry, image, retention, distroless, list, creation date
Registry
troubleshoot

{{site.data.keyword.attribute-definition-list}}

Why doesn't the retention command show all the images in {{site.data.keyword.registryshort_notm}}?

{: #troubleshoot-image-list-retention} {: troubleshoot} {: support}

An image doesn't show in the list that is produced by the {{site.data.keyword.registrylong}} ibmcloud cr retention-run command. {: shortdesc}

You ran the ibmcloud cr retention-run command and an image that you expected to see in the list is not displayed. {: tsSymptoms}

You might have Cloud Native Buildpacks{: external} or distroless{: external} base images that produce images with the build date set to a specific constant rather than the real build time or with no build timestamp at all. The ibmcloud cr retention-run command deletes the oldest images, and therefore requires a real build time. {: tsCauses}

Images created before 2013-01-19T00:13:39Z are excluded from retention policy evaluation. {: note}

You can delete the image manually by running the ibmcloud cr image-rm command. For more information, see Deleting images from your private repository. {: tsResolve}

To check the creation date of an image, you can run the ibmcloud cr image-inspect command. If the image doesn't have a creation date, the date is shown in the ibmcloud cr image-inspect output as 1970-01-01, and the image is excluded from the results for ibmcloud cr retention-run. {: tip}