title: Docker: open /certs/domain.crt: permission denied
body: <p>I'm trying to setup a private docker registry.
  I'm using my own generated certificates. But my docker logs of my registry show this error:</p>
  
  <pre><code>time="2015-12-08T08:51:54Z" level=fatal msg="open /certs/domain.crt: permission denied" 
  </code></pre>
  
  <p>I have my certificate in:</p>
  
  <pre><code>/home/centos/certs/certs/
  </code></pre>
  
  <p>This contains <code>domain.crt</code> and <code>domain.key</code></p>
  
  <p>I have a permission denied. But I don't know what's the best solution in this case? Which rights to which user do I have to give?</p>
  
  <p>I just tried to give all the rights but it isn't working:
  I tried:</p>
  
  <pre><code>sudo chmod -R 777 /home/centos/certs
  sudo chown -R root:root /home/centos/certs
  </code></pre>