Mirroring Docker Hub with AWS Public ECR

The bow of a boat on water

Mirroring Docker Hub with AWS Public ECR

On December 1, 2020, Amazon announced ECR Public and ECR Public Gallery.

We at DNX Solutions are always looking to give support with the most updated AWS features to our clients, so we came up with the idea to create a mirror between Docker Hub and Amazon Public ECR.

The fastest way we found was creating a simple python script to automate the pull and push of a list of docker images declared. To make sure we were on the right path, we tested migrating all our images.

Running from an EC2 instance, this took around 10 hours, 26 repositories, 188 images, and more than 39 GB of data.

We are very passionate about the open-source culture and being mindful of the people who follow us. Click on the banner below to find the script with instructions on how to create the mirror.[promo_banner image=”2230″ style=”shadow” text_alignment=”center” content_width=”100″ woodmart_css_id=”5fffbd0904817″ link=”url:https%3A%2F%2Fgithub.com%2FDNXLabs%2Ftools-box%2Ftree%2Fmaster%2Fscripts%2Fdockerhub-ecr-migration|||” title=”Click here to access our open-source projects on GitHub!” hide_btn_tablet=”no” hide_btn_mobile=”no” increase_spaces=”no” img_size=”medium”][/promo_banner]

[html_block id=”1164″]

[html_block id=”1336″]

Plan Your Next Move with Confidence
Ready to align your technology with your business growth strategy? Talk to DNX about modernising your platform for scalability, resilience, and faster time-to-market.
Related Insights

Insights to help you navigate an evolving digital landscape.