docker compose kill
Force stop service containers.
Usage
docker compose kill [OPTIONS] [SERVICE...]
Description
Forces running containers to stop by sending a SIGKILL
signal. Optionally the signal can be passed, for example:
$ docker-compose kill -s SIGINT
Options
Option | Short | Default | Description |
---|---|---|---|
--remove-orphans | Remove containers for services not defined in the Compose file. | ||
--signal | -s | SIGKILL | SIGNAL to send to the container. |