docker-compose事件
Usage: events [options] [SERVICE...]
Options:
--json Output events as a stream of json objects
为项目中的每个容器流化容器事件。
带有该--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"
}
}
使用此功能可以接收的事件可以在此处看到。
无花果,组成,撰写,码头工人,编排,cli,事件