Is not exiting gracefully
See original GitHub issueUsing compose, after docker-compose up.
I ask it to quit,<kbd>ctrl</kbd>+<kbd>C</kbd> when started without detaching,
or else docker-compose down.
I noticed, that my flask-docker instance always time outs after the 10 seconds.
I believe that could be some issue with the pid-1-zombie-process thing.
Some references:
- https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/
- https://engineeringblog.yelp.com/2016/01/dumb-init-an-init-for-docker.html
- https://blog.tutum.co/2014/12/02/docker-and-s6-my-new-favorite-process-supervisor/
Can that issue apply here?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Graceful exit - Wikipedia
A graceful exit (or graceful handling) is a simple programming idiom wherein a program detects a serious error condition and "exits gracefully" in...
Read more >Why do my threads not exit gracefully? - Stack Overflow
The thread blocks in its event loop (QEventLoop::exec). It waits for a quit() signal it apparently does not receive. The event loop of...
Read more >Shell script not exiting Gracefully - The UNIX and Linux Forums
Hi we are seeing strange behaviour , when we execute shell script it is successfully executing but it's PID is still hanging when...
Read more >How to Kill a Python Thread - miguelgrinberg.com
I'm often asked how to kill a background thread, and the answer to this question makes a lot of people unhappy: threads cannot...
Read more >Exiting gracefully: how to leave a job behind - Nature
She advises being factual, not just relying on hearsay, and to consider putting your perspective in writing. “Note if your concerns were raised ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

👍
It seems I do not have permission to create a PR. Here is the local patch (to let superviord becomes the front process of the container, and thus handle the SIGTERM):
Can you please help check?