title: Docker config file location on windows to, e.g., enable insecure registry / docker options
body: <p>I want to add an insecure-registry for testing purposes on a Windows 10 machine for Docker. Unfortunately I was not able to find any information where the usual <code>/etc/docker/default</code> config file is located on Windows.</p>
  <p>The error you get when trying to pull from an insecure registry without adding it to the options is:</p>
  <blockquote>
  <p>Failed to tls handshake with x.x.x.x cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs</p>
  </blockquote>
  <p>I did find a way which looks promising:</p>
  <ol>
  <li>edit C:/Users/Username/.docker/machine/default/config.json</li>
  <li>add the registry : &quot;InsecureRegistry&quot;: [&quot;x.x.x.x:port&quot;]</li>
  <li>restart docker with (?) docker-machine.exe restart default</li>
  </ol>
  <p>but now I get this error:</p>
  <blockquote>
  <p>Get <a href="https://x.x.x.x:port/v1/_ping" rel="nofollow noreferrer">https://x.x.x.x:port/v1/_ping</a>: x509: cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs</p>
  </blockquote>
  <p>(<a href="https://akrambenaissi.com/2015/11/17/addingediting-insecure-registry-to-docker-machine-afterwards/" rel="nofollow noreferrer">https://akrambenaissi.com/2015/11/17/addingediting-insecure-registry-to-docker-machine-afterwards/</a>)</p>
  <p>Update: After restarting Windows it worked:</p>
  <ul>
  <li>I received <em>&quot;unauthorized: authentication required&quot;</em></li>
  <li>thus &gt; docker login x.x.x.x:port and now it's working!</li>
  </ul>