Sign inSign up

pete911/ecr-image-sync

By pete911

Updated over 3 years ago

sync public docker images to aws ecr

Image
0

1.5K

pete911/ecr-image-sync repository overview

ecr-image-sync

Downloads docker images from provided list, then tag with AWS ECR tags and uploads them to AWS ECR. This helps to keep all images on AWS network (no need to download from public Internet), list can also be audited and reviewed.

ECR repository has to exist before image sync is run.

build and run

`docker run --rm -v $HOME/.aws/credentials:/root/.aws/credentials:ro -v $(pwd)/images-list:/images-list:ro pete911/ecr-image-sync:latest <flags>`
+--------------+----------------------------------------------------------------+
| flags                                                                         |
+--------------+----------------------------------------------------------------+
| -aws-account | AWS account where to sync images to                            |
+--------------+----------------------------------------------------------------+
| -aws-region  | AWS region where to sync images to                             |
+--------------+----------------------------------------------------------------+
| -dry-run     | whether to do sync - tag and push image                        |
+--------------+----------------------------------------------------------------+
| -images-file | file containing list of images to sync (default "images-list") |
+--------------+----------------------------------------------------------------+

Tag summary

Content type

Image

Digest

sha256:720fbea58

Size

9.8 MB

Last updated

over 3 years ago

docker pull pete911/ecr-image-sync