私有Docker注册表:“ x509:由未知权限签名的证书”仅适用于Windows映像 [英] Private Docker Registry: 'x509: certificate signed by unknown authority' ony for Windows images

查看:154
本文介绍了私有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

这篇关于私有Docker注册表:“ x509:由未知权限签名的证书”仅适用于Windows映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆