描述
显示所有容器的事件,比如start、kill、die、stop等事件
用法
Usage: events [options] [SERVICE...] Options: --json Output events as a stream of json objects
实例
使用docker-compose events --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"
}}