私有Docker注册表:“ x509:由未知权限签名的证书”仅适用于Windows映像
尝试从私有Docker注册表中提取Windows映像时,出现以下错误
While trying to pull Windows images from a Private Docker Registry, I'm getting the following error
x509: certificate signed by unknown authority
我已经安装了正确的证书,并且可以提取Linux映像而没有任何问题,但是
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.
对此有任何想法吗?
要添加不安全的Docker注册表,请添加文件 /etc/docker/daemon.json
(在Linux中),其中包含以下内容:
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" ]
}
,然后您需要重新启动docker。
and then you need to restart docker.
在Windows中,文件位于以下路径: C:\ProgramData\docker\config\ daemon.json
In case of Windows the file is at the following path:
C:\ProgramData\docker\config\daemon.json