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/
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전