简体   繁体   English

“错误:在 docker 中为 windows 操作系统获取“https://gcr.io/v2/”:x509:证书签名

[英]"ERROR: Get "https://gcr.io/v2/": x509: certificate signed by unknown authority" In docker for windows OS

I am trying to setup an application which is having python and graph QL as backend and is using radis, while building nginx using我正在尝试设置一个应用程序,该应用程序具有 python 和图形 QL 作为后端并使用半径,同时使用构建 nginx

'
 docker-compose --profile backend --profile frontend  up --build
'

it is pulling radis and then getting failed with它正在拉半径,然后失败了

ERROR- Get "https://gcr.io/v2/": x509: certificate signed by unknown authority.错误 - 获取“https://gcr.io/v2/”:x509:由未知机构签署的证书。

I am using it on windows ,我在 windows 上使用它

I tried by two ways-我尝试了两种方式-

1 Placing file in "Programdata\Docker\config\daemon.json" which is having below content, 1 将文件放在具有以下内容的“Programdata\Docker\config\daemon.json”中,

'
{
"insecure-registries" : [ "your.registry.host:5000" ]
}
'
  1. Adding content in C:\Program Files\Docker\Docker\resources\windows-daemon-options.json在 C:\Program Files\Docker\Docker\resources\windows-daemon-options.json 中添加内容

    ' '
    { "insecure-registries": [ "your.registry.host:5000" ] } ' {“不安全的注册表”:[“your.registry.host:5000”]}'

But no luck, Any help is appreciated但没有运气,任何帮助表示赞赏

As an alternate solution update your docker-compose.yml script with google/<docker_name> instead of gcr.io作为替代解决方案,使用 google/<docker_name> 而不是 gcr.io 更新您的 docker-compose.yml 脚本

For example:例如:

cadvisor:
    image: gcr.io/cadvisor/cadvisor:latest

To

cadvisor:
    image: google/cadvisor:latest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Python 中创建自签名 X509 证书 - Create a self signed X509 certificate in Python 如何使用公共密钥(x509证书)取回已签名的字符串(例如md5哈希) - How to get back a signed string (e.g. md5 hash) using a public-key (x509 certificate) 在PyASN1中创建带有扩展名的X509证书时出错 - Error while creating an X509 certificate with extensions in PyASN1 Python cryptography — 如何在自签名证书中包含“主题密钥标识符”和“授权密钥标识符”的 X509 扩展? - Python cryptography — How to include X509 extensions for “Subject Key Identifier” and “Authority Key Identifier” in a self-signed cert? Azure 物联网中心设备 x509 自签名证书 (Python MQTT) - Azure IoT Hub Device x509 Self-Signed Certificate (Python MQTT) 在Python中验证X509证书上的签名 - Verify signature on X509 certificate in Python 用Python读取X509证书 - Reading an X509 Certificate in Python 从gitlab-ci推送到gcr.io,在存储管理员中获得storage.buckets.get权限 - Pushing to gcr.io from gitlab-ci, storage.buckets.get permission in storage admin pyopenssl 无法设置 x509 证书 [证书必须是 X509 实例] - pyopenssl can't set x509 certificate [cert must be an X509 instance] M2Crypto 获取证书(X509)签名哈希算法 - M2Crypto get certificate (X509) signature hash algorithm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM