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

Add ability to have a shutdown hook #2100

Closed
noahwhite opened this issue Oct 6, 2013 · 3 comments
Closed

Add ability to have a shutdown hook #2100

noahwhite opened this issue Oct 6, 2013 · 3 comments

Comments

@noahwhite
Copy link

It would be useful to have the ability to set a stop/shutdown hook. Much like ENTRYPOINT but for when docker stop is run. Docker stop I believe sends a SIGKILL 15 then a KILL 9 (die damn you) which pulls the rug out from under the processes. If you could set up an EXITPOINT process then it would be possible to point it at a shell script or such which could gracefully shut things down prior to container stoppage.

@vieux
Copy link
Contributor

vieux commented Oct 7, 2013

There is work done around hooks, they will look like git hooks (drop a binary in the right directory and it'll be executed) We don't have any ETA for now, but it'll be merged.

@unclejack
Copy link
Contributor

Hooks are going to be added for other features as well, not only shutdown.

I'll close this issue now because a larger planned feature will add this and this issue isn't immediately actionable. Please feel free to comment.

@jcoffland
Copy link

Shouldn't have closed this. It's not been addressed.

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

No branches or pull requests

4 participants