title: How to configure docker registry always up and running when configured with redis?
body: <p>I have configured docker registry with Redis. Redis is acting as source and docker registry is the receiver. I would like to configure it in such a way so that:</p>
  
  <ol>
  <li>Docker registry is always up and running.</li>
  <li>If I use <code>restart=always</code> as parameter for docker registry, how do I ensure that Redis is up and running before docker registry does?</li>
  <li>It would be great if the docker image could be registered in such a way that it could not be deleted accidentally.</li>
  </ol>
  
  <p>How to do that?</p>