[英]"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" ]
}
'
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.