2014-12-30 2 views
2

jenkins docker build publish plugin을 구성하는 데 도움을 주시겠습니까? docker repo에 대해 artifactory를 설정하고 github docker 파일에서 이미지 빌드를 푸시하려고합니다.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

'docker' 명령을 사용하여 직접 artifactory로 푸시하면 제대로 작동합니까? https 문제를 피하기 위해 도메인에 인증 된 CA를 사용하는 것이 좋습니다. –

답변

2

그것은 구축하고 플러그인을 게시, 소스 코드 DockerBuilder.java를 참조 젠킨스 부두 노동자와 관련이없는, 그것은 직접 docker 명령을 실행합니다.

당신 artifactory 서버 ( https://artifactory.corp.inmobi.com가) 인증 공식 CA가 아닌 경우

, https://artifactory.corp.inmobi.com

에 대한 공식 CA 인증을 적용 (고정 표시기 데몬이있는) 당신의 젠킨스 서버에

를 활성화 또는 귀하의 IT 관리자에게 물어 Remote access to a private docker-registry을 확인하시기 바랍니다

관련 문제