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

handle sigterm on running a plugin #2799

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

tonistiigi
Copy link
Member

While running a plugin and canceling with SIGTERM, main process will close right away without letting the plugin close itself down and handle the exit code properly. Add appcontext that is useful for handling sigterm, as well as supporting sigkill when things go wrong.

@AkihiroSuda @tiborvass

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@thaJeztah
Copy link
Member

Could you include the description in the commit message, instead of only on GitHub? 🤗

While running a plugin and canceling with SIGTERM, main process will
close right away without letting the plugin close itself down and handle
the exit code properly. Add appcontext that is useful for handling
sigterm, as well as supporting sigkill when things go wrong.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit d1b4b61 into docker:master Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants