-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
RFC: drop -a from runc kill
#3864
Comments
@giuseppe @cyphar @AkihiroSuda WDYT? |
Probably this is fine but we might need to add another flag to disable it
For compatibility sake, the flag will have to remain as a NOP flag |
libcontainer works this way since 2005: runc/libcontainer/process_linux.go Lines 617 to 622 in 2685116
(Yes, the other peculiarity here is we call For some reason, runc kill doesn't work this way, thus the need for I don't think we need a flag to disable this behavior -- there is no use case when you want to
Sure |
LGTM |
Option
-a
forrunc kill
is only usable when we are trying tokill -9
the container which does not have its own PID namespace. All other use cases (like sending SIGTERM to all container processes) are questionable to say at least.I propose we deprecate
-a
, and handle the above use case (sending SIGKILL to init of the container which does not have its own pidns) automatically (in fact, this is already done in libcontainer, but not in runc binary).The deprecation can be done in steps:
-a
is used withrunc kill
.The text was updated successfully, but these errors were encountered: