docker-compose events

Usage: docker-compose events [options] [SERVICE...]

Options:
    --json      Output events as a stream of json objects
利用方法: docker-compose events [オプション] [サービス名...]

オプション:
    --json      JSON オブジェクトのストリームとしてイベントを出力します。

プロジェクト内のコンテナーすべてに対して、コンテナーイベントをストリーム出力します。

--jsonフラグが指定されている場合は、以下のような書式により各設定が 1 行ずつ出力されます。

{
    "time": "2015-11-20T18:01:03.615550",
    "type": "container",
    "action": "create",
    "id": "213cf7...5fc39a",
    "service": "web",
    "attributes": {
        "name": "application_web_1",
        "image": "alpine:edge"
    }
}

このコマンドを使って取得できるイベントの一覧は こちら に示しています。

fig, composition, compose, docker, orchestration, cli, events