ecrm
ecrm copied to clipboard
Support to rm image indexes and soci indexes.
https://aws.amazon.com/jp/blogs/news/aws-fargate-enables-faster-container-startup-using-seekable-oci/
Now, ECR supports image index and soci index. But ecrm can not detect these index, so ecrm deletes these index images possibility.
- List up images(not index) that candidate for deletion.
- Find image index has tag
sha256-{sha256 of image}
. - Get a manifest of image index by ECR BatchGetImage API.
- Find sha256 of soci index in the manifest.