The command docker compose kill
stop the service containers forcefully.
$ docker compose KILL [OPTIONS] [SERVICE...]
Here,
Options:
-s
, --signal
→ SIGNAL to send to the container (Default is SIGKILL
)$ docker-compose kill -s SIGINT
Here the signal is passed using -s
flag, which is optional.