1 Answer
- Newest
- Most votes
- Most comments
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/
answered a year ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 5 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago