I have an docker public image, Now for some reason we had to shift it to AWS ECR,Now I am able to transfer the image to ECR from docker hub, but how to make sure that all the stable release in dockerhub will be pushed to AWS ECR, I want my ECR repo update with latest dockerhub image all the time.
Asked
Active
Viewed 683 times
2 Answers
1
You might consider building and publishing your Docker image through GitHub and its CI (Continuous Integration) GitHub Actions option.
That way, you can, in your GitHub workflow, chain:
- Publish-Docker-Github-Action: Publishes docker containers to DockerHub
- appleboy/docker-ecr-action: Uploads Docker Image to Amazon Elastic Container Registry (ECR).
Each time you are publishing a new version of your image, it would also be available in ECR.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
Are we sure GitHub is being used in this workflow? I do not see it referenced in the question. – pygeek Sep 08 '20 at 13:38
-
@pygeek I agree but my point is: it is *really* easy to use GitHub and build/update and publish one's own public image through its versioned (in GitHub) Dockerfile and a couple of GitHub Actions. – VonC Sep 08 '20 at 13:52
-
It may be better to point the author of the question towards Continuous Integration/Continuous Deployment and note your specific implementation as an example. – pygeek Sep 08 '20 at 13:55
-
@pygeek Sure, let us all wait for the OP's feedback. – VonC Sep 08 '20 at 13:59
0
Using Docker Registry Sync tool, Dregsy -> https://github.com/xelalexv/dregsy

Chayne P. S.
- 1,558
- 12
- 17