eduherminio
eduherminio

Reputation: 1674

Private Docker Registry: 'x509: certificate signed by unknown authority' only for Windows images

While trying to pull Windows images from a Private Docker Registry, I'm getting the following error

x509: certificate signed by unknown authority

I've installed the proper certificate and I can pull Linux images without any issue, but for some reason I'm unable to pull Windows ones.

My co-workers don't have this problem.

Any ideas on this one?

Upvotes: 9

Views: 37563

Answers (2)

Sudip Ghosh
Sudip Ghosh

Reputation: 351

In windows you can find that file in

C:\Program Files\Docker\Docker\resources\windows-daemon-options.json

Make the suggested changes by Nicola Ben and then restart the docker.

Upvotes: 7

Nicola Ben
Nicola Ben

Reputation: 11317

To add an insecure docker registry, add the file /etc/docker/daemon.json (in Linux) with the following content:

{
    "insecure-registries" : [ "your.registry.host:5000" ]
}

and then you need to restart docker.

In case of Windows the file is at the following path: C:\ProgramData\docker\config\daemon.json

Upvotes: 20

Related Questions