title: Docker Swarm and self-signed Docker Registry
body: <p>Does <a href="https://docs.docker.com/swarm/" rel="nofollow">Docker Swarm</a> support usage of <a href="https://docs.docker.com/registry/insecure/" rel="nofollow">Docker Registry</a> with self-signed certificate?</p>
  
  <p>I've created my cluster based on step from official Docker <a href="https://docs.docker.com/swarm/install-manual/" rel="nofollow">documentation</a>, it uses swarm master/nodes running inside containers.</p>
  
  <p>It works well, but as soon as I try to login to my Docker Registry I'm getting error message:</p>
  
  <pre><code>$ docker -H :4000 login https://...:443
  ...
  Error response from daemon: Get https://.../v1/users/: x509: certificate signed by unknown authority
  </code></pre>
  
  <p>Is there an additional option which needs to be set, like <code>--insecure-registry</code>? Or do I need to somehow update Docker Swarm container?</p>