DOCKER-COMPOSE-KILL(1)
π docker-compose-kill β the "bestie it's OVER" button
okay so like. this is docker-compose-kill(1), a page in the Docker Compose manual, and it does exactly what it says on the tin: it force stops service containers. no gentle goodbyes. no "hey are you done?" it's just. done. β¨
β¨ SYNOPSIS β¨
docker compose kill [OPTIONS] [SERVICE...]
that's it. that's the whole vibe. π«Ά
π DESCRIPTION π
So basically this command forces running containers to stop by sending a SIGKILL signal. Like, straight to the point. No hand-holding, no asking nicely, no graceful shutdown arc. It just ends them. π
But wait, bestie, plot twist β optionally the signal can be passed! So if SIGKILL is giving too much and you want something a little different, you can say so, for example:
$ docker-compose kill -s SIGINT
see? you got range. π
π₯ OPTIONS π₯
-h,--help[=false]β help forkill. your little "what does this do again" safety net π--remove-orphans[=false]β Remove containers for services not defined in the Compose file. yes the orphans. someone had to deal with them π₯Ί-s,--signal="SIGKILL"β SIGNAL to send to the container. default isSIGKILL, which is lowkey the most dramatic one, and honestly? iconic π
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
these ones come from the parent command, they're not even kill's own thing, they're just part of the family tree πΈ
--dry-run[=false]β Execute command in dry run mode. aka you get to rehearse the whole thing without actually doing it. main character energy but with a rehearsal π¬
π SEE ALSO π
docker-compose(1)β the mothership. go read her too, fr fr π
and that's the tea, bestie π this page is from Docker Compose, dated Mar 2025, and it's the docker-compose-kill(1) entry β so if you ever need to send a container a very firm signal, you know where to find me. slay safe out there ππ¦
π¦ where this page comes from
- debian trixie: docker-compose 2.26.1-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms