Get “https://xx.xx.x.xx/v2/“: x509: certificate signed by unknown authority

问题描述

使用Windows docker客户端login docker私库,无法登录提示:

Get "https://xx.xx.x.xx/v2/": x509: certificate signed by unknown authority

原因分析:

由于harbor做了ssl,通常客户端连接需要配置证书


解决方案:

  • 1.打开docker客户端 -> 设置 -> Docker Engine。添加配置:
"insecure-registries": [
    "xx.xx.x.xx私库地址1",
    "xx.xx.xxx.xx私库地址2"
  ],
  • 2.应用重启

Get “https://xx.xx.x.xx/v2/“: x509: certificate signed by unknown authority_第1张图片

你可能感兴趣的:(解决方案,docker,容器,harbor,运维)