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. From the top navigation bar select cogwheel icon > Elastic Bamboo > Image configurations.
  2. In the Operations section select Capabilities for the relevant elastic image. 
  3. Use the Add capability panel at the end of the page to add the new Docker capability to the image:

    • From Capability type select Docker.

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

  4. Select Add.

Define a Docker capability on an agent

  1. From the top navigation bar select cogwheel icon > Build resources > Agents.
  2. Select the name of the required agent.
  3. Select the Capabilities tab, and then Add capability.
  4. In the Add capability panel:
    • From Capability type select Docker.

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

  5. Select Add.

Define a Docker capability on the Bamboo server 

  1. From the top navigation bar select cogwheel icon > Build resources > Agents >Server capabilities.
  2. Use the Add capability panel at the end of the page to add the new Docker capability to the server:

    • From Capability type select Docker.

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

  3. Select Add.

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




Last modified on Aug 3, 2021

Was this helpful?

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