docker compose events

描述接收来自容器的实时事件
用法docker compose events [选项] [服务...]

描述

流式传输项目中每个容器的容器事件。

使用 --json 标志时,将按行打印 JSON 对象,格式为

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

通过此方式可以接收的事件请参阅此处

选项

选项默认值描述
--json以 JSON 对象流的形式输出事件
--since显示自时间戳以来创建的所有事件
--until流式传输事件直到此时间戳
© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.