[英]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尝试从私有 Docker 注册表中提取 Windows 映像时,出现以下错误
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.我已经安装了正确的证书,我可以毫无问题地提取 Linux 映像,但由于某种原因,我无法提取 Windows 映像。
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:要添加不安全的/etc/docker/daemon.json
注册表,请添加文件/etc/docker/daemon.json
(在 Linux 中),内容如下:
{
"insecure-registries" : [ "your.registry.host:5000" ]
}
and then you need to restart docker.然后你需要重新启动docker。
In case of Windows the file is at the following path: C:\\ProgramData\\docker\\config\\daemon.json
在 Windows 的情况下,文件位于以下路径: C:\\ProgramData\\docker\\config\\daemon.json
In windows you can find that file in在 Windows 中,您可以在
C:\\Program Files\\Docker\\Docker\\resources\\windows-daemon-options.json C:\\Program Files\\Docker\\Docker\\resources\\windows-daemon-options.json
Make the suggested changes by Nicola Ben and then restart the docker.按照 Nicola Ben 的建议进行更改,然后重新启动 docker。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.