Skip to content

Commit

Permalink
podman-events: clarify streaming behaviour
Browse files Browse the repository at this point in the history
Unless `--since` or `--until` is specified, `podman events` will stream
new events.  Clarify this behavior in the `--help` message and man page
to avoid confusion.

Fixes: #6536
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Jun 10, 2020
1 parent 9967f28 commit 99cbe59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/podman/system/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ import (
)

var (
eventsDescription = "Monitor podman events"
eventsCommand = &cobra.Command{
eventsDescription = `Monitor podman events.
By default, streaming mode is used, printing new events as they occur. Previous events can be listed via --since and --until.`
eventsCommand = &cobra.Command{
Use: "events",
Args: validate.NoArgs,
Short: "Show podman events",
Expand Down
2 changes: 2 additions & 0 deletions docs/source/markdown/podman-events.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ value to `file`. Only `file` and `journald` are accepted. A `none` logger is al
available but this logging mechanism completely disables events; nothing will be reported by
`podman events`.

By default, streaming mode is used, printing new events as they occur. Previous events can be listed via `--since` and `--until`.

The *container* event type will report the follow statuses:
* attach
* checkpoint
Expand Down

0 comments on commit 99cbe59

Please sign in to comment.