Docker-build-and-publish failed to push private repo

169 views
Skip to first unread message

eliran shlomo

unread,
Jul 12, 2015, 5:39:42 AM7/12/15
to jenkins...@googlegroups.com
Hi All,
After updating docker to latest CentOS version (1.6) the build and publish plugin failed to push private repository 

Do you really want to push to public registry? [y/n]: EOF
Build step 'Docker Build and Publish' marked build as failure

My thoughts it's because of a user\pass problem but i can't find anywhere to put them (until now i used execute shell and used docker login -u).

any advise?

Thanks,
Eliran

nicolas de loof

unread,
Jul 12, 2015, 5:42:38 AM7/12/15
to jenkins...@googlegroups.com
Can you check your $HOME dir for .dockercfg file ? It should have private registry credentials set by the plugin
Also check for a ~/.docker/config.json, if present then docker will use this one. You then need docker-commons 1.1 for this to be handled correctly.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0bef23c5-868d-4b8d-9738-db54aaeae065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eliran shlomo

unread,
Jul 12, 2015, 5:50:04 AM7/12/15
to jenkins...@googlegroups.com
Hi Nicolas,
Thanks for reply.
I updated all plugins to latest versions, the .dockercfg under $HOME is created by the execute shell command 

[NewArchAppImage] $ /bin/sh -xe /tmp/hudson589083928113628999.sh
+ docker login -u *******
WARNING: login credentials saved in /home/centos/.dockercfg.
Login Succeeded

I can't find anywhere where to put username\pass for the docker hub, not under Manage Jenkins -> Manage Credentials and not under Manage Jenkins -> Configure System

i also don't have ~/.docker/config.json existing in my $HOME
Reply all
Reply to author
Forward
0 new messages