mirror of
https://github.com/docker/docs.git
synced 2026-04-01 16:58:54 +07:00
* Reword lots of instances of 'will' * Reword lots of instances of won't * Reword lots of instances of we'll * Eradicate you'll * Eradicate 'be able to' type of phrases * Eradicate 'unable to' type of phrases * Eradicate 'has / have to' type of phrases * Eradicate 'note that' type of phrases * Eradicate 'in order to' type of phrases * Redirect to official Chef and Puppet docs * Eradicate gratuitous 'please' * Reduce use of e.g. * Reduce use of i.e. * Reduce use of N.B. * Get rid of 'sexagesimal' and correct some errors
29 lines
592 B
Markdown
29 lines
592 B
Markdown
---
|
|
description: Receive real time events from containers.
|
|
keywords: fig, composition, compose, docker, orchestration, cli, events
|
|
title: docker-compose events
|
|
notoc: true
|
|
---
|
|
|
|
```
|
|
Usage: events [options] [SERVICE...]
|
|
|
|
Options:
|
|
--json Output events as a stream of json objects
|
|
```
|
|
|
|
Stream container events for every container in the project.
|
|
|
|
With the `--json` flag, a json object is printed one per line with the
|
|
format:
|
|
|
|
```
|
|
{
|
|
"service": "web",
|
|
"event": "create",
|
|
"container": "213cf75fc39a",
|
|
"image": "alpine:edge",
|
|
"time": "2015-11-20T18:01:03.615550",
|
|
}
|
|
```
|