When comparing Amazon EC2 Container Registry vs Gitlab Container Registry, the Slant community recommends Gitlab Container Registry for most people. In the question“What are the best docker image private registries?” Gitlab Container Registry is ranked 1st while Amazon EC2 Container Registry is ranked 17th. The most important reason people chose Gitlab Container Registry is:
Good integration into the repository you build your docker images out of. Just activate it for your repo and you're done. Most of the time new projects/repo have it on by default.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
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.
Pro Integration into GitLab
Good integration into the repository you build your docker images out of. Just activate it for your repo and you're done. Most of the time new projects/repo have it on by default.
Pro Free
Cons
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.
Con Not free
Con Tight integration into GitLab
If you're not building your docker images via GitLab CI, it's kinda hard to push images to the registry.
Con Docker garbage collection
Gitlab has very poor docker garbage collection management by default. One must read a good portion of the documentation to know what to do, so that garbage collection kicks in.