How to setup private docker registry securely?

I am able to setup private docker registry insecurely and able to pull and push from remote hosts. However, i would like to change it to using secure connection. I have followed the instruction at but i am confused which steps to be followed at docker host running registry and which are to be executed at remote docker machine? Please help!!!

Thanks in advance

  • Docker in production
  • how to build docker containers for different modules
  • Running ServiceBus in windows docker container
  • Openshift Job container image from internal registry
  • Setting up Nginx Proxy in Docker using Ansible
  • Gitlab CI build failed with “Preparation failed: cannot connect to Docker endpoint”
  • Docker image layers vernacular – referencing layer order
  • Docker volumes and package.json not found
  • Commit to jenkins docker image does not save changes
  • Cannot retrieve the stats of my docker containers using Docker APIs
  • What is the purpose of putting Wordpress in a Docker container [closed]
  • docker-compose v3 + apache spark, connection refused on port 7077
  • One Solution collect form web for “How to setup private docker registry securely?”

    The recommended way is to secure your registry using nginx for SSL-termination, with a valid SSL certificate.

    Here you will find sample nginx configuration to achieve that (on the registry host, obviously).

    In case you can’t/won’t use a valid SSL certificate, you can still instruct your docker daemon hosts to either trust that certificate, or ignore cert validation errors (see here for more:

    Hope that helps.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.