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
Make sure you have Docker installed. We recommend using the latest version of Docker. If you have restrictions on the version of Docker that you can run, review the Supported platforms page for your Bamboo version.
For Bamboo 5.8, and later versions, Stock images already provide Docker, but you might still need to add the capability manually if you have upgraded from Bamboo 5.7 or an earlier version. See Existing stock images require manual update if new capabilities are needed for more details.
Define a Docker capability on an elastic image
- From the top navigation bar select > Elastic Bamboo > Image configurations.
- In the Operations section select Capabilities for the relevant elastic image.
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
.
Select Add.
Define a Docker capability on an agent
- From the top navigation bar select > Build resources > Agents.
- Select the name of the required agent.
- Select the Capabilities tab, and then Add capability.
- In the Add capability panel:
From Capability type select Docker.
For Path, enter the path to the Docker executable, for example
/usr/bin/docker
.
Select Add.
Define a Docker capability on the Bamboo server
- From the top navigation bar select > Build resources > Agents >Server capabilities.
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
.
- Select Add.
For more information about Bamboo and Docker integration, see Getting started with Docker and Bamboo