When comparing Docker Registry 2.0 vs Amazon EC2 Container Registry, the Slant community recommends Docker Registry 2.0 for most people. In the question“What are the best docker image private registries?” Docker Registry 2.0 is ranked 2nd while Amazon EC2 Container Registry is ranked 17th. The most important reason people chose Docker Registry 2.0 is:
Currently includes in-memory, local filesystem, Azure, and S3.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Maintains several storage drivers to allow for different models of image retention
Currently includes in-memory, local filesystem, Azure, and S3.
Pro Simple to set up
Pro Only supports docker images
If you want more then go somewhere else! :)
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 Biggest CON there is that it cannot control deleting of images properly
Bottom line is this makes docker registry suck when your harddisk fills up at the wrong time and you cannot push out your builds!
Con No inbuilt access control provided
Authentication or Authorization is not provided by default and needs to be handled externally. An optional authentication should have been provided, given that docker client has inbuilt authentication.
Con Only supports docker images
Con Sometimes images disappear
Con Setting it up may require some work
Setting up the new Docker Registry 2.0 requires some more setup than usual. Especially dependencies need to be installed beforehand.
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.