ScanSkill

docker compose kill

The command docker compose kill stop the service containers forcefully.

Syntax

$ docker compose KILL [OPTIONS] [SERVICE...]

Here,

Options:

  • -s, --signal→ SIGNAL to send to the container (Default is SIGKILL)

Example

$ docker-compose kill -s SIGINT

Here the signal is passed using -s flag, which is optional.