简体   繁体   中英

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?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM