Have you ever stopped a Docker container? There are essentially two commands: `docker stop` and `docker kill` that can be used to stop it. Behind the scenes, `docker stop` stops a running container by sending it SIGTERM signal, let the main process process it, and after a grace period uses SIGKILL to terminate the application. Running applications in Docker, you could use signals to communicate wi
![Trapping signals in Docker containers](https://cdn-ak-scissors.b.st-hatena.com/image/square/06ebf50cce705e1181a4e52bdbb21ec1b958f9b6/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1000%2F1%2Apeji3MiBCC2bcMrA1DoVXQ.jpeg)