专用Docker注册表:"x509:由未知授权机构签名的证书"仅适用于Windows映像 [英] Private Docker Registry: 'x509: certificate signed by unknown authority' only for Windows images

查看:76
本文介绍了专用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映像,但是由于某些原因,我无法提取Windows映像.

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天全站免登陆