Bamboo Docker Push fails Edited

Hi guys,

I am doing a docker push build step and I get the following error:
error 04-Aug-2017 14:49:37 Caused by: com.atlassian.utils.process.ProcessException: Error executing '/usr/bin/docker login -u vlad -p ***** -e', exit code: 125
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.process.DefaultDockerProcessService.execute(
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.process.DefaultDockerProcessService.executeSilently(
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.executeSilently(
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.client.DockerCmd$AuthorisedCommand.login(
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.client.DockerCmd$AuthorisedCommand.execute(
error 04-Aug-2017 14:49:37 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.push(

The docker login command doesn' t have a -e option and that generates the issue.

Do you have any suggestions?
Is this a bug ?


3 answers

The -e and --email flags flags have been removed from Docker engine as of release 17.06, so presumably the Docker CLI on your agents is a more recent version.

I don't know off hand how the Bamboo Docker task handles this, but given that all fields are optional because you can "Leave these credentials empty to use the agent's ~/.dockercfg credentials" (which would also be a workaround accordingly), it might just do the right thing and skip the -e flag when you don't specify an email address.

Hi Steffen,

Thanks for your reply.
Could you give me the exact path to the dockercfg file ?
It's now clear what is the agent's home dir. I have only one agent so the path would be bamboo-home/atlassian-bamboo-6.1.0/.dockercfg ?

Hi Vlad we are facing same issue. Were you able to use a workaround.

Great solution here, sadly Email is not optional for all Docker plugin version. I'm currently dealing with this in Bambo 6.1.

0 vote

Hello @Vlad Budica,

It's known issue which is fixed in Bamboo 6.2.0 planned for release end of September.

You can try updated version of docker plugin from for older versions of Bamboo, but we not guarantee it is 100% compatible

Hi Alexey,

Thanks for your reply we will se if we still need this functionality.


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,579 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you