新しい 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 in Bamboo builds and deployments.


はじめる前に

  • Make sure you have Docker installed. We recommend using the latest version of Docker. 

  • If you're using Bamboo on Windows, you can't run Docker commands directly from the Windows command line. To use Docker tasks with Bamboo Windows, run Docker Machine.

  • 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...

エラスティック イメージの Docker 機能を定義する

  1. Click the  icon in the Bamboo header and choose Overview.
  2. 左側のナビゲーション パネルで ([Elastic Bamboo] の下にある) [イメージ設定] をクリックします。
  3. ([操作] の下にある) 該当するエラスティック イメージの [機能] をクリックします。 
  4. ページの最後にある [機能を追加] パネルを使用して、新しい Docker 機能をイメージに追加します。

    • [Capability Type (機能タイプ)] から [Docker] を選択します。

    • [パス] に、Docker 実行ファイルへのパスを入力します (例: /usr/bin/docker)。

  5. [追加] をクリックします。

Define a Docker capability on an agent...

エージェントの Docker 機能を定義する

  1. Click the  icon in the Bamboo header and choose Overview.
  2. 左ペインで [エージェント] をクリックします。
  3. 目的のエージェントの名前をクリックします。
  4. [機能] タブをクリックしてから、([エージェント固有の機能] の右側にある) [機能を追加] をクリックします。
  5. [機能を追加] パネルで、
    • [Capability Type (機能タイプ)] から [Docker] を選択します。

    • [パス] に、Docker 実行ファイルへのパスを入力します (例: /usr/bin/docker)。

  6. [追加] をクリックします。

Define a Docker capability on the Bamboo Server...

Bamboo サーバーの Docker 機能を定義します。 

  1. Click the  icon in the Bamboo header and choose Overview.
  2. 左側のナビゲーション パネルで [サーバー機能] をクリックします。
  3. ページの最後にある [機能を追加] パネルを使用して、新しい Docker 機能をサーバーに追加します。

    • [Capability Type (機能タイプ)] から [Docker] を選択します。

    • [パス] に、Docker 実行ファイルへのパスを入力します (例: /usr/bin/docker)。

  4. [追加] をクリックします。



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




最終更新日: 2019 年 2 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.