Defining a new Docker capability

A capability typically defines the path to a module or executable that has already been installed, and must be defined in Bamboo before Bamboo or its agents can make use of that. That is why you need to define a Docker capability in Bamboo before you can use a Docker task or the Docker Runner feature in Bamboo builds and deployments.

Before you begin

Define a Docker capability on an elastic image

  1. Click the  icon in the Bamboo header and choose  Overview.
  2. Click Image configurations in the left navigation panel (under 'Elastic Bamboo').
  3. Click Capabilities (under 'Operations') for the relevant elastic image. 
  4. Use the 'Add Capability' panel at the end of the page to add the new Docker capability to the image:

    • From Capability type, choose Docker.

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

  5. Click Add.

Define a Docker capability on an agent

  1. Click the  icon in the Bamboo header and choose  Overview.
  2. Click Agents in the left panel.
  3. Click the name of the required agent.
  4. Click the Capabilities tab, and then Add capability (to the right of 'Agent-Specific capabilities').
  5. In the 'Add Capability' panel:
    • From Capability type, choose Docker.

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

  6. Click Add.

Define a Docker capability on the Bamboo server 

  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.

For more information about Bamboo and Docker integration, see Getting started with Docker and Bamboo




Last modified on Feb 5, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.