Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a docker registry cluster solution for private purpose?

I am looking for an open source solution to sync several docker registries. Could anybody give me some hints about this?

like image 835
Hao Wang Avatar asked Sep 18 '14 01:09

Hao Wang


People also ask

Can we create private Docker registry?

Docker provides the support for creating, storing, and managing the Docker images on a private server. Additionally, Docker also has a free public registry. The Docker Hub can host our images, but they will be publicly available. In most cases, images contain all the code and configuration needed to run an application.

What is Docker private registry?

A private Docker registry allows you to share your custom base images within your organization, keeping a consistent, private, and centralized source of truth for the building blocks of your architecture.


1 Answers

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.

like image 111
pech0rin Avatar answered Sep 23 '22 20:09

pech0rin