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

capture exit code for container being stopped, and return according to --exit-code-from #11715

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Apr 11, 2024

What I did
capture container's exitCode on stop event, as container has been interrupted

Related issue
fixes #11712

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

…o --exit-code-from

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from a team, glours, milas and jhrotko and removed request for a team April 11, 2024 12:09
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milas milas merged commit c9e070f into docker:main Apr 16, 2024
28 checks passed
@ndeloof ndeloof deleted the exit_code_from branch April 16, 2024 14:06
temenuzhka-thede pushed a commit to temenuzhka-thede/compose that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] docker compose --exit-code-from does not return correct exit code.
3 participants