2

你能帮我配置一下jenkins docker build 发布插件吗?我已经为 docker repo 设置了工件,并尝试从 github docker 文件推送图像构建。

以下是我得到的错误:

Error response from daemon: Invalid registry endpoint https://     
https://artifactory.corp.inmobi.com/v1/: 
Get https:// https://artifactory.corp.inmobi.com/v1/_ping: dial tcp: unknown port tcp/. \
If this private registry supports only HTTP or HTTPS with an unknown CA certificate, \
please add `--insecure-registry  https:` to the daemon's arguments. \
In the case of HTTPS, if you have access to the registry's CA certificate, \
no need for the flag; simply place the CA certificate at /etc/docker/certs.d/ https:/ca.crt

Build step 'Docker build and publish' marked build as failure
Finished: FAILURE
4

1 回答 1

2

它与 Jenkins Docker 构建和发布插件无关,请参见源代码DockerBuilder.java,它将docker直接执行命令。

如果您的工件服务器(https://artifactory.corp.inmobi.com)未获得官方 CA 证书,请检查远程访问私有 docker-registry以在您的 jenkins 服务器(具有 docker 守护程序)中启用它

或者请您的 IT 管理员为https://artifactory.corp.inmobi.com申请官方 CA 认证

于 2015-01-08T05:29:05.163 回答