Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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

Docker runner with multiple docker containers



I've been testing the new Docker runner feature for the past couple hours and it's been working great! There is one thing though that I can't seem to figure out how to do. I'd like to be able to run say a Database Docker container alongside the build. This is a pretty typical case for builds to run external services alongside them (e.g. Bitbucket pipelines services feature).


Is it possible to configure multiple containers to run alongside your docker runner build?


Thank you,

- Mark



3 answers

1 vote
Omar Herrera
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 13, 2018

Hi @Mark Kewley if your are familired with docker you can use docker compose for orchestate the containers.


Let me try that solution


Thank you!

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 26, 2018

Hi Mark,

It would be easiest to accomplish this by setting up pre-tasks to your build/plan. You could build your database and attach your schema in build steps before, and then have your docker runner tasks execute after that dependency is met, however you would need to cleanup the container in another step later.



Not sure if I see this pre-task tab, do you mean using stages? Is it possible configuring this all through the YAML bamboo-specs configuration as code?


A quick search in the docs does not mention pre-tasks.




@Mark Kewley

to my mind Max points to the feature of this plugin: pre-post-build-command-runner.
I will give it a try - even if its an v1 plugin :(.


Thanks @Alexander Sowatsch,

Our company has since moved away from Bamboo and we are now using Gitlab. So much better.

@Omar Herrera

That actually doesn't solve the issue with Docker Runners, the only thing we are allowed to do via the UI is to place an image as our build container. We aren't given an option to say place a docker-compose.yml file.


What we need is something like bitbucket-pipelines, where you can have your base image the agent runs on and then you can attach services (other docker images) that run alongside the build that can be called upon.


Does such a feature exist?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events