From e5e8051b5944769be917b919c7313a6f97b7d36a Mon Sep 17 00:00:00 2001 From: Benjamin White Date: Tue, 27 Mar 2018 19:17:37 +0100 Subject: [PATCH] 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 --- compose/reference/events.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/compose/reference/events.md b/compose/reference/events.md index d79ee3a1d6..1b5f1e420b 100644 --- a/compose/reference/events.md +++ b/compose/reference/events.md @@ -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).