compose/internal/e2e/testdata/TestPreStartHookStartFailureNamesTheHook
Nicolas De Loof 0e0005664c fix(pre_start): name the hook when its container cannot start
A pre_start hook container that fails to start (an executable missing from
the image of the hook, a bad mount, ...) was reported with the bare error of
the engine. It names neither the hook nor its image, and it surfaces on the row
of the service container, so it reads as the service failing to start.

Wrap it with the service, the index of the hook and its image, like the other
pre_start errors: service "app" pre_start[0] (image hello-world): failed to
start the hook container: <engine error>. The wrapped error is unchanged for
errors.Is and errors.As.

Refs #14513

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-11-17 09:21:06 +01:00
..
compose.yaml fix(pre_start): name the hook when its container cannot start 2026-11-17 09:21:06 +01:00