Skip to content

container-compose kill

Force-stop project containers.

Synopsis

terminal
container-compose kill [global-options] [options] [services...]

Options

Flag Shorthand Type Default Description
--signal -s string SIGKILL Signal to send to the container
--file -f path The path to your Docker Compose file
--profile string Specify a profile to enable. Can be specified multiple times.

Arguments

Argument Description
services Specify the services to kill

Examples

Kill all containers

Send SIGKILL to all running containers in the project.

terminal
container-compose kill

Send a specific signal

Send SIGTERM instead of the default SIGKILL.

terminal
container-compose kill -s SIGTERM

Kill a specific service

Only kill the worker service.

terminal
container-compose kill worker

See also