Docker 推送到 Artifactory 失败 - 无法 ping resgistry 端点

Docker push to Artifactory fails - unable to ping resgistry endpoint

我使用由 nginx 支持的 Artifactory 作为代理服务器。 nginx 负载平衡器配置有来自受信任机构的 SSL 证书。我创建了一个本地 docker 存储库并需要推送图像但出现以下错误:

unable to ping registry endpoint https://myArtifactory.com/v0/
v2 ping attempt failed with error: Get https://myArtifactory.com/v2/: x509: certificate signed by unknown authority
 v1 ping attempt failed with error: Get https://myArtifactory.com/v1/_ping: x509: certificate signed by unknown authority

我正在使用以下命令推送图像

docker push myArtifactory.com/ubuntu

通过将证书添加到 /etc/docker/certs.d

下的 docker 客户端来修复此问题