Pushing a Docker image to a registry

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

You can push a Docker image to a Docker registry. This may be the central Docker Hub registry or a custom registry.

はじめる前に

  • Make sure you have Docker installed. We advise to use the most recent version. 
  • Define a Docker capability in Bamboo. See Defining a new Docker capability

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

Bam\boo から Docker リポジトリをレジストリにプッシュするには:

  1. In you job configuration screen, click Add task.
  2. Search for the Docker tasks type and select it.
  3. (optional) For future reference, add a Task description.
  4. (optional) Use the Disable this task checkbox to control whether your task gets run.
  5. From the Repository drop-down list, choose the Push a Docker image to a Docker registry.
  6.  Complete the settings

    Docker イメージを Docker レジストリにプッシュする...
    レジストリ

    Docker Hub またはカスタム リポジトリのいずれかへのプッシュを選択します。
    リポジトリ
    For Docker Hub you must specify the repository name and optionally a tag, for example: namespace/repository:tagFor a custom registry you must specify the registry address, repository name and optionally a tag, for example: registry.address:port/namespace/repository:tag
    Autnetication type

    Select how you'd like to authenticate:

    • use agents' dockercfg file
    • use username and password
    • select predefined shared credentials from the drop-down list


    必要に応じて、詳細オプションを指定します。 

    環境変数
    (Optional)  Additional system environment variables that you want to pass to your build. Note that existing environment variables are automatically available to the executable. You can also include Bamboo global or build-specific variables (see Bamboo variables).
    Multiple variables should be separated with spaces. Parameters with spaces must be quoted (e.g JAVA_OPTS="-Xms200m -Xmx700m").
    作業サブディレクトリ
    (オプション)  Bamboo が実行ファイルを実行する、ジョブのルート ディレクトリに相対的な代替サブディレクトリ。ルート ディレクトリには、ジョブの構成済みソース リポジトリから確認されたものがすべて含まれます。このフィールドを空白のまま残した場合、Bamboo はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。


    Save your changes!

最終更新日 2019 年 7 月 17 日

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

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