When comparing Docker Hub vs Docker Registry 2.0, 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 Docker Hub is ranked 15th. 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 Shares user accounts with the dominant public registry, Docker Hub
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! :)
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 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.
