Read recent Docker daemon events
Build a paste-ready command, then review its compatibility and effects before running it.
docker events --since 10m --until 0s --format '{{.Time}} {{.Type}} {{.Action}} {{.Actor.Attributes.name}}' | tail -20read-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-20
Requirementsdockerdocker must be installed and available on PATH.
Version supportdocker Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signals1784887650 container start apiRepresentative successful output; values vary with the selected target and system state.
Known errorsdocker: command not founddocker is missing or is not available on PATH.
Verifydocker events --since 10m --until 0s --format '{{.Time}} {{.Type}} {{.Action}} {{.Actor.Attributes.name}}' | tail -20The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01dockerCommandRuns the docker stage of this one-liner.
02eventsArgumentPasses events to docker.
03--sinceOptionLimits results to entries after the supplied time.
0410mArgumentPasses 10m to docker.
05--untilOptionConfigures docker with the --until option.
060sArgumentPasses 0s to docker.
07--formatOptionFormats each result using the supplied template.
08'{{.Time}} {{.Type}} {{.Action}} {{.Actor.Attributes.name}}'ArgumentPasses '{{.Time}} {{.Type}} {{.Action}} {{.Actor.Attributes.name}}' to docker.
09|PipelinePasses the output on the left to the command on the right.
10tailCommandRuns the tail stage of this one-liner.
11-20OptionConfigures tail with the -20 option.
Example input
docker events --since 10m --until 0s --format '{{.Time}} {{.Type}} {{.Action}} {{.Actor.Attributes.name}}' | tail -20
Example output
1784887650 container start api
1784887662 container health_status: healthy api
Illustrative output — exact values vary by system and data.
Official sources