compose/pkg
Guillaume Lours 6f0dccbdc2
fix: treat container exit code 0 as success in --wait mode
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 <glours@users.noreply.github.com>
2026-03-24 15:58:23 +01:00
..
api go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
bridge pkg/bridge: remove uses of go-connections 2026-02-11 12:32:37 +01:00
compose fix: treat container exit code 0 as success in --wait mode 2026-03-24 15:58:23 +01:00
dryrun go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
e2e bump golangci-lint to latest and configure CLAUDE to use it on change 2026-03-23 11:33:52 +01:00
mocks go.mod: bump github.com/moby/moby/api v1.53.0, moby/client v0.2.2 2026-02-11 12:32:37 +01:00
remote
utils
watch modernize some code 2026-02-12 15:31:35 +01:00