问题
I am looking for an open source solution to sync several docker registries. Could anybody give me some hints about this?
回答1:
The easiest way to set up a docker registry is using the official docker registry. This allows you to easily run a registry server with a configurable storage backend. As others have mentioned you can use S3 or Google Cloud storage. (I have personally used Google Cloud storage and have not run into any problems).
I would also check out this digital ocean post about setting up a docker registry: How to setup a docker registry.
Since you are interested in clustering, all you would need to do at this point is setup multiple registry servers with the same bucket as a storage backend. Then put a load balancer such as haproxy or nginx in front of them. This will give you the fault tolerance and load balancing that you are looking for.
来源:https://stackoverflow.com/questions/25902892/is-there-a-docker-registry-cluster-solution-for-private-purpose