docker构建发布插件的错误 [英] error in docker build publish plugin

查看:307
本文介绍了docker构建发布插件的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以帮助我配置 jenkins docker build publish插件
我已经为docker repo设置了工件,并尝试从github docker文件中推送图像构建。



以下是我遇到的错误:

 守护进程错误响应:无效的注册表端点https:// 
https://artifactory.corp.inmobi.com/v1/:
获取https:// https://artifactory.corp.inmobi.com/v1/_ping:dial tcp:unknown port tcp /。 \
如果此私有注册表仅支持具有未知CA证书的HTTP或HTTPS,则\
请将--insecure-registry https:添加到守护程序的参数中。 \
在HTTPS的情况下,如果您有权访问注册表的CA证书,\
不需要该标志;只需将CA证书放在/etc/docker/certs.d/ https:/ca.crt

构建步骤'Docker构建和发布'标记的版本为失败
已完成:FAILURE


解决方案

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



如果您的工件服务器( https://artifactory.corp.inmobi.com )并非官方CA认证,请检查< a href =https://stackoverflow.com/questions/26710153/remote-access-to-a-private-docker-registry>远程访问私人docker-registry ,以在jenkins服务器中启用它(有docker守护进程)



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


Can you please help me for configuring the jenkins docker build publish plugin. I have setup artifactory for docker repo and trying to push image build from github docker file.

Following is the error I am getting :

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

解决方案

It is not related with Jenkins Docker build and publish plugin, see source code DockerBuilder.java, it will execute the docker command directly.

If you artifactory server (https://artifactory.corp.inmobi.com) is not official CA certificated, please check Remote access to a private docker-registry to enable it in your jenkins server (which has docker daemon)

Or ask your IT admin to apply official CA certification for https://artifactory.corp.inmobi.com

这篇关于docker构建发布插件的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆