Why do all the tags get deleted when I delete an image in Container Registry?
You tried to delete an image from IBM Cloud® Container Registry by using the ibmcloud cr image-rm
command and all the tags that referenced that image
got deleted too.
You deleted an image by using the ibmcloud cr image-rm
command and all the tags within the same repository that referenced the image also got deleted.
Where multiple tags exist for the same image digest within a repository, the ibmcloud cr image-rm
command removes the underlying image and all its tags. If the same image exists in a different repository or namespace, that copy of the image is not removed.
If you want to remove a tag from an image, but leave the underlying image and any other tags, use the ibmcloud cr image-untag
command. For more information,
see Removing tags from images in your private repository and Deleting images from your private repository.