-
Notifications
You must be signed in to change notification settings - Fork 618
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
nerdctl kill isn't working after update to 2.x (unable to cleanup network) #3765
Comments
Hey @mathias-ioki Can you clarify what you mean with Things seem to work fine for me with:
The error message and location suggests that there might be something wrong with your network CNI conf. |
Could also be that the container was not created by nerdctl, or has otherwise a problem with the label
|
Hey @apostasie, thank you for your fast reply! We are using a setup with containerd + kubelet in standalone mode. So we are shipping container manifest files to kubelet, which is taking care of starting the container via containerd. So yes, you are right: These containers are neither managed via nerdctl nor have nerdctl related labels attached. As far as I understood, nerdctl can be always used for debugging, even if it doesn't manage the containers itself. Please let me know, if this isn't the case. |
@mathias-ioki agreed with you - nerdctl should at least bail out politely if something is not manageable instead of planting face. I'll send a patch in a minute. |
Oh, that was super fast again! Thank you very much @apostasie ! I will give it a try later and let you know, if this fix my issue :) |
Description
Hey,
with the update to version 2.0,
nerdctl kill
stopped working for us. Instead of sending the signal to the container, we just receive an error:It doesn't matter, if the container is spawned in the host network or if a overlay network is used. Not sure, if I missed something during the 2.0 release, but at least in the changelog I can't find any related breaking change.
The tested configuration is working fine with version
1.7.7
of nerdctl.Steps to reproduce the issue
sudo nerdctl kill -s HUP abc0123456789
Describe the results you received and expected
received result:
Just an error message - no signal was send:
expected result:
Container receives a SIGHUP.
What version of nerdctl are you using?
Tested also with containerd 2.0.1
config:
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: