Trouble using docker with bamboo running on windows

I am trying to use bamboo with docker for the first time. My bamboo is running on windows. So I install docker machine. I am using Azure driver where a Ubuntu VM with docker is up and running.

It has been setup correctly. docker machine is started. I can use command line to run docker containers. I am configuring docker task to run a container. I see a warning that "no agent has this capability"

So I need to know how to tell bamboo that docker machine is configured and running and it should use that to run docker containers.

1 answer

0 vote

You need to follow the steps outlined in Defining a new Docker capability that are appropriate for your agent configuration:

You need to define (that is, 'register') a Docker capability in Bamboo before you can use a Docker task in Bamboo builds and deployments.

It sounds like you plan to use your local agents, so likely section 'Define a Docker capability on the Bamboo server' applies to your scenario:

  1. Click the  icon in the Bamboo header and choose  Overview.
  2. Click Server capabilities in the left navigation panel.
  3. Use the 'Add Capability' panel at the end of the page to add the new Docker capability to the server:

    • From Capability type, choose Docker.

    • For Path, enter the path to the Docker executable, for example /usr/bin/docker.

  4. Click Add.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
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,489 views 0 5
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