When comparing Docker Hub vs Amazon EC2 Container Registry, the Slant community recommends Docker Hub for most people. In the question“What are the best docker image private registries?” Docker Hub is ranked 15th while Amazon EC2 Container Registry is ranked 17th.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Shares user accounts with the dominant public registry, Docker Hub
Pro Amazon ECR is integrated with Amazon EC2 Container Service (ECS), simplifying your development to production workflow.
Pro Free tier
Amazon ECR, like other AWS tools has a free tier for beginners of 500MB-month storage for one year.
Cons
Con No longer free
Rate limits on downloads can royally screw your deployments. In 2021, they will start deleting containers which haven't been pulled for six months. This will suck for stable software which doesn't get redeployed frequently.
Con Gives no metadata about image tags beyond their name
No information about when the image was created, pushed, what Dockerfile it came from, what user(s) pushed it, etc.
Con Poor user interface design
Con Default to public makes it dangerous
Since by default your account will create new repositories publicly, you could fairly easily leak sensitive images with one bad push.
Con The access token expires after 12 hours
You have to build a more complex deployment script in order to compensate for the AWS token expiring after 12 hours.