Docker provides an official registry image, making it quick and easy to deploy a private Docker registry instance. This can be very handy for development environments, as the CloudRouter project’s Arun Babu Neelicattu has found. However, in more sensitive environments it is important to ensure that the Docker registry is secured with authentication and TLS/SSL. Arun has created a secure Docker registry image, providing an out-of-the box secure environment. This image is also available on the CloudRouter dockerhub repo.
If you’re using an RPM-based Linux distribution, Arun has also created a Docker registry RPM. You can use this to install a local copy of the Docker registry. Note that this is not secure by default. You will have to either follow the Docker registry documentation on SSL configuration and authentication; or install and configure an Nginx proxy similar to this nginx configuration.