4

Trying to use a customer registry from a Windows 10 system - a native Docker client in PowerShell.

PS > docker --version

Docker version 17.06.0-ce, build 02c1287
PS > docker pull REPO_URL/foo-bar:0.1

Error response from daemon: get https://REPO_URL/v2/: x509: 
certificate signed by unknown authority.

Importing the authority certificate to local user store via Windows tooling works for itself but has no effect here.

Dan Cornilescu
  • 6,780
  • 2
  • 21
  • 45
Ta Mu
  • 6,792
  • 5
  • 43
  • 83

1 Answers1

10

The official Docker documentation says:

Docker recognizes certs stored under Trust Root Certification Authorities or Intermediate Certification Authorities.

That is, you can proceed as the following:

  • Start > "Manage Computer Certificates" (also available in the control panel)
  • Right-click on "Trusted Root Certification Authoritites" > "All tasks" > "Import"
  • Browse to the crt file and then keep pressing "Next" to complete the wizard
  • Restart Docker for Windows

In my case, the catch was that I imported the certificate via the context menu, and therefore it went to another folder where Docker could not access it. The certificate store behaves however very much like the normal Windows Explorer tree folder, so I had just to copy the certificate over to the supported category, and after Docker restart it worked.

Ta Mu
  • 6,792
  • 5
  • 43
  • 83