Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

dockerhub auth not working

hi guys,

Did you change anything on the integration with dockerhub?

I am executing a task using shared credentials which used to work and now is failing with this error.


com.atlassian.bamboo.task.TaskException: Failed to execute task
	at com.atlassian.bamboo.plugins.docker.service.PullService.execute(
	at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(
	at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(
	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(
	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(
	at com.atlassian.bamboo.task.TaskExecutorImpl.execute(
	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(
	at com.atlassian.bamboo.utils.BambooRunnables$
Caused by: com.atlassian.bamboo.docker.DockerException: Error running Docker pull command. See messages above for details. If no reason is specified it may be because you have not provided login details to a registry that requires authorisation.
	at com.atlassian.bamboo.plugins.docker.client.DockerCmd.pull(
	at com.atlassian.bamboo.plugins.docker.service.PullService.execute(
	... 17 more
Caused by: com.atlassian.utils.process.ProcessException: Error executing  pull hashicorp/terraform:latest
	at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(
	at com.atlassian.bamboo.plugins.docker.client.DockerCmd.lambda$pull$1(
	at com.atlassian.bamboo.plugins.docker.client.DockerCmd.pull(
	... 18 more

 I am asking as I know that recently you changed the auth mechanism for Bitbucket, so maybe this is the case too. Someone can point me to the right documentation please? and I will be on my way.


1 comment

Hello @Valentin Constantinescu

No recent changes have been made to Bamboo and how it deals with Docker login.

Depending on how your Docker task is configured, it might expect the "docker login" to be managed by the operating system. You can alternatively add a username and password so Bamboo will make sure to run "docker login/logout" when necessary.

Perhaps your credentials have expired?

You can also enable DEBUG logs for the following classes to find exactly what Bamboo is doing:

  • com.atlassian.bamboo.docker
  • com.atlassian.bamboo.plugins.docker
  • com.atlassian.utils.process


Eduardo Alvarenga
Atlassian Support APAC 

It uses the shared credentials, but it does not work neither with native or direct username/password. Command line similar command works just fine.

Fixed it. Seems that docker capabilities can be agent specific and the path was not set up properly. I have to thank the chance - Bamboo error logs are pretty verbose and useless in the same time.

Like # people like this


Log in or Sign up to comment
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

961 views 3 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you