Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for --abort-on-container-failure (to match docker compose) #1164

Open
gtebbutt opened this issue Mar 12, 2025 · 0 comments
Open

Support for --abort-on-container-failure (to match docker compose) #1164

gtebbutt opened this issue Mar 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@gtebbutt
Copy link

gtebbutt commented Mar 12, 2025

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.

@gtebbutt gtebbutt added the enhancement New feature or request label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant