Skip to main content

Module exit_evidence

Module exit_evidence 

Source
Expand description

Exit-time evidence; cumulative cgroup counters and OOMKilled are historical.

Constants§

DAEMON_RESTART
DAEMON_RESTART_API
DOCKER_OOM
MAIN_OOM

Functions§

collect
collect_lost_watcher_evidence
A watcher that shares the daemon with its task (a mounted docker.sock) dies in the same restart and never logs evidence, so --status collects it from the container state that survived, once per process (issue #241).
daemon_restart_api_evidence
Socket-only daemon-restart evidence (issue #241): another container that finished within the same shutdown window, was not OOM-killed, and was either stopped by a signal (137/143) or started again afterwards (restart policy; moby resets its ExitCode to 0 but keeps FinishedAt). docker events cannot be used: its buffer does not survive the restart, while State does.
daemon_restart_evidence
daemon_restart_source
Which source attributed the restart: the host journal or the API (#241).
evidence_json
The stored exitEvidence object; the source is kept only for a restart.
from_log
main
recent_docker_oom
recent_oom_delta
record_tail
Terminal evidence remains useful if the user moves or truncates the log.
snippet