docker_compose_events.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. command: docker compose events
  2. short: Receive real time events from containers
  3. long: |-
  4. Stream container events for every container in the project.
  5. With the `--json` flag, a json object is printed one per line with the format:
  6. ```json
  7. {
  8. "time": "2015-11-20T18:01:03.615550",
  9. "type": "container",
  10. "action": "create",
  11. "id": "213cf7...5fc39a",
  12. "service": "web",
  13. "attributes": {
  14. "name": "application_web_1",
  15. "image": "alpine:edge"
  16. }
  17. }
  18. ```
  19. The events that can be received using this can be seen [here](/reference/cli/docker/system/events/#object-types).
  20. usage: docker compose events [OPTIONS] [SERVICE...]
  21. pname: docker compose
  22. plink: docker_compose.yaml
  23. options:
  24. - option: json
  25. value_type: bool
  26. default_value: "false"
  27. description: Output events as a stream of json objects
  28. deprecated: false
  29. hidden: false
  30. experimental: false
  31. experimentalcli: false
  32. kubernetes: false
  33. swarm: false
  34. inherited_options:
  35. - option: dry-run
  36. value_type: bool
  37. default_value: "false"
  38. description: Execute command in dry run mode
  39. deprecated: false
  40. hidden: false
  41. experimental: false
  42. experimentalcli: false
  43. kubernetes: false
  44. swarm: false
  45. deprecated: false
  46. hidden: false
  47. experimental: false
  48. experimentalcli: false
  49. kubernetes: false
  50. swarm: false