When I execute docker-compose down
. What exactly it does to stop the services?
I want to know if it
- sends
SIGINT
to each container’s 0-PID process? - sends
SIGKILL
to each container’s 0-PID process? - simply terminates the container regardless of its state?
I want to know this, because I want to write a startup.sh script that could stop the services in the container gracefully.