Skip to content

Latest commit

 

History

History

ECR

ECR

Jump to


Useful Libs and Tools


Useful Articles and Blogs


Image Scanning

https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html

# Configure an existing repository to Scan on Push
aws ecr put-image-scanning-configuration --repository-name name --image-scanning-configuration scanOnPush=true --region ap-southeast-2

# Create a repository configured for scan on push
aws ecr create-repository --repository-name name --image-scanning-configuration scanOnPush=true --region ap-southeast-2

# Start image scan
aws ecr start-image-scan --repository-name name --image-id imageTag=tag_name --region ap-southeast-2

aws ecr start-image-scan --repository-name name --image-id imageDigest=sha256_hash --region ap-southeast-2

# Retrieve image scan findings
aws ecr describe-image-scan-findings --repository-name name --image-id imageTag=tag_name --region ap-southeast-2

aws ecr describe-image-scan-findings --repository-name name --image-id imageDigest=sha256_hash --region ap-southeast-2

Pull Through Cache

ECR currently supports creating pull through cache rules for

in which Docker Official Images are available on ECR Public (only the images labelled with DOCKER OFFICIAL IMAGE; e.g. node).