新しい Docker 機能を定義する
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.
はじめる前に
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.
エラスティック イメージの Docker 機能を定義する
- 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.
[パス] に、Docker 実行ファイルへのパスを入力します (例:
/usr/bin/docker
)。
追加 を選択します。
エージェントの Docker 機能を定義する
- 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.
[パス] に、Docker 実行ファイルへのパスを入力します (例:
/usr/bin/docker
)。
追加 を選択します。
Bamboo サーバーの Docker 機能を定義します。
- 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.
[パス] に、Docker 実行ファイルへのパスを入力します (例:
/usr/bin/docker
)。
- 追加 を選択します。
For more information about Bamboo and Docker integration, see Getting started with Docker and Bamboo