在线文档教程
Docker 17
撰写 | Compose

docker-compose事件 | docker-compose events

docker-compose 事件

Usage: events [options] [SERVICE...] Options: --json Output events as a stream of json objects

为项目中的每个容器流化容器事件。

使用该--json标志,每行将打印一个 json 对象,其格式为:

{ "service": "web", "event": "create", "container": "213cf75fc39a", "image": "alpine:edge", "time": "2015-11-20T18:01:03.615550", }

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