How to delete aws ECR repository which contain images through cloudformation?

耗尽温柔 提交于 2021-02-07 07:25:35

问题


How to delete aws ECR repository which contain images through cloudformation? getting below error while deleting it.

The repository with name 'test' in registry with id '**********' cannot be deleted because it still contains images


回答1:


I was able to do this by first deleting all images in ECR and then going back to CloudFormation and deleting again. Instructions for deleting images are here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html. After I did that, I was able to head back to CloudFormation and delete with no problems.



来源:https://stackoverflow.com/questions/49277590/how-to-delete-aws-ecr-repository-which-contain-images-through-cloudformation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!