docker_compose_events.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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](/engine/reference/commandline/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. experimental: false
  30. experimentalcli: false
  31. kubernetes: false
  32. swarm: false
  33. deprecated: false
  34. experimental: false
  35. experimentalcli: false
  36. kubernetes: false
  37. swarm: false