Defining a new Docker capability

You need to define (that is, 'register') a Docker capability in Bamboo before you can use a Docker task in Bamboo builds and deployments.

If you're using a Windows Bamboo server, you can't run Docker commands directly from the Windows command line.

To use the Docker task with a Windows Bamboo server, run Docker Machine.

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.

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.

 

Note that Bamboo requires Docker 1.7.1 or later.

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. 追加をクリックします。

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. 追加をクリックします。

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. 追加をクリックします。

 

最終更新日 2017 年 9 月 28 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

お探しの情報が見つかりませんか?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.