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
- Click theicon in the Bamboo header and choose Overview.
- Click Image configurations in the left navigation panel (under 'Elastic Bamboo').
- Click Capabilities (under 'Operations') 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, choose Docker.
For Path, enter the path to the Docker executable, for example
/usr/bin/docker
.
Click Add.
Define a Docker capability on an agent
- Click theicon in the Bamboo header and choose Overview.
- Click Agents in the left panel.
- Click the name of the required agent.
- Click the Capabilities tab, and then Add capability (to the right of 'Agent-Specific capabilities').
- In the 'Add Capability' panel:
From Capability type, choose Docker.
For Path, enter the path to the Docker executable, for example
/usr/bin/docker
.
Click Add.
Define a Docker capability on the Bamboo server
- Click theicon in the Bamboo header and choose Overview.
- Click Server capabilities in the left navigation panel.
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
.
- Click Add.
For more information about Bamboo and Docker integration, see Getting started with Docker and Bamboo