docker events

The command that prints the daemon's real-time stream of events, such as a container starting, dying, being killed for memory or changing health.

In more detail

Filters narrow the stream to one container or one kind of event, and the since and until options replay a time window instead of waiting for new events. Each die event carries the exit code, so a crash loop reads as a repeating start and die sequence.

Example

docker events --since 20s --until 0s -f container=m07l01-loop

Related terms

Taught in

References