1 回答
- 最新
- 投票最多
- 评论最多
1
We can use the AWS CLI to find the size of all the layers in an ECR image without pulling down the layers using below ECR CLI command:
aws ecr batch-get-image --repository-name <repo-name> --image-ids imageDigest-<image-digest' --region <region>
To find out image digest run use below ECR CLI command:
aws ecr list-images --repository-name <repo-name> --region <region>
We can also use the command below to achive that. docker buildx imagetools inspect --raw $IMAGE_NAME:$IMAGE_TAG Installation guide : https://docs.docker.com/build/install-buildx/ Command documentation : https://docs.docker.com/engine/reference/commandline/buildx_imagetools_inspect/
已回答 1 年前