-
Notifications
You must be signed in to change notification settings - Fork 191
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
Can't rely on the Docker restart policy #11
Comments
Thank you, |
Yes, |
On other hand, Pumba is already able to kill container (read "main process" within it), sending any Linux termination signal, exactly like |
Please, read carefully. I wrote that after using |
It seems that Docker will restart container only when/if then main process exited by itself and its restart depends on defined restart policy. I've tried to kill PID 1 inside the container (using So, I think that running On the other hand, if you will not use Docker restart policy and will use some scheduler (like swarm, kubernets or fleet), the scheduler will usually restart your container. What is the use case, you are trying to achieve, by killing PID 1? Maybe there is an alternative approach. |
It seems that killing process with ID=1 is not allowed in Linux (from |
I don't use the scheduler and don't plan to do this. My goal is to automate failure testing for a data processing pipeline which is built on top of the Apache Storm. I have several Storm's Supervisors running in separate containers. Each of these containers have restart policy set to |
I think it will be enough to add |
Did this feature get added? I don't see any reference in the documentation |
Whether you use
STOP
orKILL
there is no way Docker will restart killed containers automatically. It would be great to have an ability to kill a process inside a running container so that the container will be restarted in case of using a corresponding restart policy.More general approach can be implemented with the new "kill" command
EXEC:CMD
. To address the issue described above I would useEXEC:kill 1
.The text was updated successfully, but these errors were encountered: