Fix events JSON blob format (#6195)

* Update example events JSON blob

The example JSON blob given doesn't match up with the values I experience when running `docker-compose events` myself, so I'm updating the documentation to save someone else some time.

* Add link to event types for convenience
This commit is contained in:
Benjamin White 2018-03-27 19:17:37 +01:00 committed by Joao Fernandes
parent e01ab90c07
commit e5e8051b59
1 changed files with 10 additions and 4 deletions

View File

@ -19,10 +19,16 @@ format:
```
{
"service": "web",
"event": "create",
"container": "213cf75fc39a",
"image": "alpine:edge",
"time": "2015-11-20T18:01:03.615550",
"type": "container",
"action": "create",
"id": "213cf7...5fc39a",
"service": "web",
"attributes": {
"name": "application_web_1",
"image": "alpine:edge",
}
}
```
The events that can be received using this can be seen [here](/engine/reference/commandline/events/#object-types).