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
Supervisor works when call service docker stop? #5137
Comments
I've done another test to detect does docker send signal to process PID=1 when stop.
With "docker stop my_container", log file properly catch:
With "sudo service docker restart", log file catch:
Any idea about which happen? |
ping @creack |
For similar configuration with ubuntu:14.04 image and latest docker (1.4.1) I've got it working. @trungtan haven't you resolved that issue? I've tried to build your Dockerfile but have no success due to broken ubuntu updates. |
this should work on the latest version of docker, I have noticed a few images on hub using supervisord |
Hi everyone,
I'm trying to manage processes inside a container using supervisor.
I expected supervisor was able to foward all SIGTERM to it's sub-processes (apache, memcache, mysql...) .
With my Dockerfile below, supervisord run with PID 1 and it managed all its sub-processes. When I stop the running container, all sub-processes shut down probably with SIGTERM in their logs (e.g: /var/log/apache2/error.log).
The problem is when I restart docker service, I've seen sub-processes don't receive SIGTERM, they don't clean their pid files too.
Anyone in my case? Is that the way supervisor works, or because of my wrong configuration? Any other ways to restart docker service with all sub-processes shutdown properly?
Thank you.
The text was updated successfully, but these errors were encountered: