3
I would like to know if it is possible to launch bash script on host when a docker container is stopped.
For example I would like to stop a service when my container is stopped.
I saw that catching the SIGTERM signal is possible and that you can then execute some bash commands in the container. Maybe there is a way to catch the SIGTERM signal on the host machine and then launch a script...