docs: document engine container event sequences in up monitor · docker/compose@2621077 · GitHub
Skip to content

Commit 2621077

Browse files
committed
docs: document engine container event sequences in up monitor
Map, per container lifecycle scenario, the exact event sequences the engine emits and the monitor may receive: natural exit, policy-driven restart (die/start only, no restart action, silence during backoff), external stop of a running vs restarting container, ContainerRestart, docker kill, OOM kill, rm -f and rm. Mapped from moby's daemon sources (LogContainerEvent call sites and handleContainerExit/containerStop/containerRestart/kill paths) and verified against a live engine v29.6.1 with 'docker events'. Notably: the relative order of stop and die on a container stop is not guaranteed, and no event at all is emitted while a container sits in restart backoff. Related to #13985 / #13990. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent bbcd810 commit 2621077

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

‎pkg/compose/monitor.go‎

Lines changed: 69 additions & 0 deletions

0 commit comments

Comments
 (0)