container-compose events¶
Stream container lifecycle events for this Compose project.
Synopsis¶
Options¶
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit events as newline-delimited JSON | ||
--file |
-f |
path | The path to your Docker Compose file |
Arguments¶
| Argument | Description |
|---|---|
services |
Filter events to specific services |
Examples¶
Stream all events¶
Watch all container lifecycle events (create, start, stop, etc.) for the project.
Stream events as JSON¶
Useful for piping into other tools like jq.
Filter events by service¶
Only watch events for the web service.