It would be useful to have the ability to set a stop/shutdown hook. Much like ENTRYPOINT but for when docker stop is run. Docker stop I believe sends a SIGKILL 15 then a KILL 9 (die damn you) which pulls the rug out from under the processes. If you could set up an EXITPOINT process then it would be possible to point it at a shell script or such which could gracefully shut things down prior to container stoppage.
It would be useful to have the ability to set a stop/shutdown hook. Much like ENTRYPOINT but for when docker stop is run. Docker stop I believe sends a SIGKILL 15 then a KILL 9 (die damn you) which pulls the rug out from under the processes. If you could set up an EXITPOINT process then it would be possible to point it at a shell script or such which could gracefully shut things down prior to container stoppage.