Re:Why Databases Are Not for Docker Containers
by subway on Monday February 06, 2017 @07:38PM
(#13585849)
Unless you've written very poorly behaving software, you kill it by sending it a SIGTERM, and waiting for it to exit. This is true of software both within and outside of containers.
The fact `docker kill` defaults to using SIGKILL instead of SIGTERM is unfortunate, and something one should be aware of before deploying a process with docker, but again, this does not make the process running within the container inherently less reliable.
edit: Looks like `docker stop` does the right-ish thing -- sends a SIGTERM, then only resorts to SIGKILL after a timeout has expired.
Re:Why Databases Are Not for Docker Containers
by brazzledazzle on Tuesday February 07, 2017 @07:55AM
(#13589016)
Also worth noting that the timeout is a configurable parameter with `docker stop`.
Because the way to change anything in a container is to kill it and restart it. That's a fundamental difference compared to managing/maintaining a database not in a container.