Support for --abort-on-container-failure
(to match docker compose
)
#1164
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Using compose to run containers that are expected to have a limited lifespan (e.g. running multiple test environments in parallel) doesn't currently have a mechanism to detect if one of those containers fails. The existing
--abort-on-container-exit
flag will abort everything even when a container finishes successfully - makes sense for server tasks that run indefinitely, but doesn't work when individual containers are expected to exit when their tests have finished.See docker/compose#10225 for discussion around the same issue, with
--abort-on-container-failure
being added as the fix.Describe the solution you'd like
Add
--abort-on-container-failure
, to stop all containers only if a container exits with a nonzero code.The text was updated successfully, but these errors were encountered: