-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack exec
not propagating signals when using Docker
#547
Comments
Not holding my breath on the upstream Docker issue getting fixed. Solution is probably to have |
I've improved this significantly, and it at least works for sigTERM now. The container's current PID 1 (phusion/baseimage's To fully fix this, we'd need a different PID 1. One approach would be to have @nh2 Can you try the current master out for your use case? |
Blocked by #531. |
|
I've improved the signal handling significantly, but I don't think perfection is possible (I now understand why the Docker team decided to punt on this entirely for the interactive containers). More signals are now proxied, sigINT handling is more consistent, and sigTERM and sigABRT now give the container 30 seconds to exit gracefully before terminating it forcefully. Many signals don't make sense to proxy, and process control (STOP/CONT/etc.) doesn't work anyway (since there's usually no shell in the container to manage them, and if there is a shell it takes care of them on its own anyway), so these are not proxied. We can improve handling for signals on a case-by-case basis if a need can be demonstrated and there's a way to improve it without degrading other cases. |
This is exactly the same issue as #527, but when you have a
stack.yaml
that is Docker-enabled:I falsely assumed that #527 was also about the Docker case, so please refer to #527 (comment) for a description of the problem.
This is the Docker issue that I believe would resolve this problem automatically if implemented: moby/moby#7567
The text was updated successfully, but these errors were encountered: