title: Docker login x509: certificate signed by unknown authority
body: <p>I am running docker registry as container in Redhat Linux 7.5 with Docker 18.09.3-3 version. if configured with self-sign certificate.</p>
  
  <p>container started successfully. it works with curl with-out any error. but giving error for <code>docker login</code> command.</p>
  
  <p><strong>curl command works</strong></p>
  
  <pre><code>curl --cacert /etc/docker/certs.d/dockerhost\:5000/ca.crt https://dockerhost:5000 -v
  </code></pre>
  
  <p><strong>login command</strong></p>
  
  <pre><code>docker  login dockerhost:5000 
  Error response from daemon: Get https://dockerhost:5000/v2/: x509: certificate signed by unknown authority
  </code></pre>
  
  <p>how to resolve this error message?</p>
  
  <p>Thanks</p>