クラス DockerApi.ContainerApi

java.lang.ObjectSE
org.springframework.boot.buildpack.platform.docker.DockerApi.ContainerApi
含まれているクラス:
DockerApi

public class DockerApi.ContainerApi extends ObjectSE
コンテナー操作用の Docker API。
導入:
2.3.0
作成者:
Phillip Webb, Scott Frederick, Rafael Ceccone, Moritz Halbritter
  • メソッドの詳細

    • create

      public ContainerReference create(ContainerConfig config, @Nullable ImagePlatform platform, ContainerContent... contents) throws IOExceptionSE
      新しいコンテナー ContainerConfig を作成します。
      パラメーター:
      config - コンテナー構成
      platform - コンテナーを作成するイメージのプラットフォーム (OS/ アーキテクチャ / バリアント)
      contents - 含める追加コンテンツ
      戻り値:
      新しく作成されたコンテナーの ContainerReference
      例外:
      IOExceptionSE - IO エラー時
    • start

      public void start(ContainerReference reference) throws IOExceptionSE
      特定のコンテナーを起動します。
      パラメーター:
      reference - 開始するコンテナー参照
      例外:
      IOExceptionSE - IO エラー時
    • logs

      public void logs(ContainerReference reference, UpdateListener<LogUpdateEvent> listener) throws IOExceptionSE
      特定のコンテナーのログを返し、フォローします。
      パラメーター:
      reference - コンテナーリファレンス
      listener - ログ更新イベントを受信するリスナー
      例外:
      IOExceptionSE - IO エラー時
    • wait

      public ContainerStatus wait(ContainerReference reference) throws IOExceptionSE
      コンテナーが停止してステータスを取得するまで待ちます。
      パラメーター:
      reference - コンテナーリファレンス
      戻り値:
      コンテナーの終了ステータスを示す ContainerStatus
      例外:
      IOExceptionSE - IO エラー時
    • remove

      public void remove(ContainerReference reference, boolean force) throws IOExceptionSE
      特定のコンテナーを削除します。
      パラメーター:
      reference - 削除するコンテナー
      force - 削除を強制する必要がある場合
      例外:
      IOExceptionSE - IO エラー時