| title | container-compose events |
|---|---|
| description | Stream container lifecycle events. |
Stream container lifecycle events for this Compose project.
container-compose events [global-options] [options] [services...]| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit events as newline-delimited JSON | ||
--file |
-f |
path | The path to your Docker Compose file |
| Argument | Description |
|---|---|
services |
Filter events to specific services |
Watch all container lifecycle events (create, start, stop, etc.) for the project.
container-compose eventsUseful for piping into other tools like jq.
container-compose events --jsonOnly watch events for the web service.
container-compose events web