mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
When using , containers that exit with code 0 (such as init or oneshot containers) were incorrectly treated as failures, causing the command to return exit code 1. Introduce a typed containerExitError in isServiceHealthy and handle exit code 0 in the RunningOrHealthy wait path. Services with restart policies that restart on clean exit (always, unless-stopped) are excluded via restartsOnExit0 to avoid false positives. Fixes #10596 Signed-off-by: Guillaume Lours <[email protected]>