docker build publish插件中的错误

时间:2014-12-30 06:47:27

标签: build docker jenkins-plugins docker-registry

请帮我配置jenkins docker build publish plugin。 我为docker repo设置了artifactory,并尝试从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

1 个答案:

答案 0 :(得分:2)

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

如果您的神器服务器(https://artifactory.corp.inmobi.com)未通过CA认证,请检查Remote access to a private docker-registry以在您的jenkins服务器(具有docker守护程序)中启用它

或者请您的IT管理员为https://artifactory.corp.inmobi.com

申请官方CA认证