ecrm icon indicating copy to clipboard operation
ecrm copied to clipboard

Support to rm image indexes and soci indexes.

Open fujiwara opened this issue 10 months ago • 0 comments

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.

  1. List up images(not index) that candidate for deletion.
  2. Find image index has tag sha256-{sha256 of image}.
  3. Get a manifest of image index by ECR BatchGetImage API.
  4. Find sha256 of soci index in the manifest.

fujiwara avatar Aug 04 '23 06:08 fujiwara