如何通过cloudformation删除包含图像的aws ECR存储库? [英] How to delete aws ECR repository which contain images through cloudformation?

查看:56
本文介绍了如何通过cloudformation删除包含图像的aws ECR存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过cloudformation删除包含图像的AWS ECR存储库?删除错误时出现以下错误.

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

无法删除注册表中ID为"**********"的名称为"test"的存储库,因为它仍然包含图像

推荐答案

我能够做到这一点,方法是先删除ECR中的所有图像,然后再返回CloudFormation并再次删除.删除图像的说明在这里: https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html .完成之后,我可以回到CloudFormation并毫无问题地删除.

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.

这篇关于如何通过cloudformation删除包含图像的aws ECR存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆