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
Proposal: user should be able to stop/kill an exec command #9167
Conversation
this proposes additional extenstions to the remote API for managing exec commands. - POST /exec/id/stop similar to POST /containers/id/stop this will stop or kill the exec command after timeout - POST /exec/id/kill similar to POST /containers/id/kill this will kill the exec command (optionally with a custom signal) Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
👍 for these APIs. @dqminh do you plan to work on implementing them as well? |
@vishh yes, i have some patches that implementing them. It still need more work though. Can I ping you for comments sometime soon 😄 ? |
Yeah sure. On Sun, Nov 16, 2014 at 9:20 PM, Daniel, Dao Quang Minh <
|
This adds support for `POST /exec/(name)/stop` and `POST /exec/(name)kill` following the proposal at moby#9167 Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
This adds support for `POST /exec/(name)/stop` and `POST /exec/(name)kill` following the proposal at moby#9167 Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
I think @ewindisch's comment on a related issue is very relevant here. |
assuming this will go into Docker 1.5, the documentation change needs to go into the new v1.17 API doc. |
Need this badly .. +1 |
This PR has been stalled for quite some time. Personally I'm -1 on design... Anyone else? |
@icecrime Sorry about this. I will need to rebase some of the old code to new libcontainer API. What do you not like about the design ? |
It's the very general thing of making |
See #9402 for an example of the endless debates that this kind of things bring :-) |
Ah, i remember it now ( #9402 (comment) ). Yes i agree that having exec first class citizen solves many problems ( this included ), but that itself is also a very hard problem :-) That being said, to be able to stop/kill a (rogue/dangling) execin processes in the current API is very helpful. I tried to not introduce the CLI dependencies here, only the API (because we only consume the API), hopefully that it will be easier to be merged/deprecated after if necessary. |
@icecrime don't be so hard on exec, it just needs some love too :-) |
Collective review with @LK4D4 @calavera @jfrazelle @crosbymichael @tiborvass Sorry, we're not currently comfortable with expanding the capabilities of exec, and would like as much to keep it as a debugging utility. Regarding the interactions with signals and the |
:( This should at least be better documented. Burnt a lot of cycles with the idea in my head that this would work |
👍 definitely a bug, strange that it's still not fixed... |
Fix #9098
This proposes additional extenstions to the remote API for managing exec commands.
this will stop or kill the exec command after timeout
this will kill the exec command (optionally with a custom signal)
cc @vishh
also @vieux @jfrazelle for the API change
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh dqminh89@gmail.com (github: dqminh)