DOCKER-COMPOSE-KILL(1)

πŸ“¦ version 2.26.1, in debian trixie

πŸ’€ 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 for kill. 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 is SIGKILL, 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 πŸ‘‘


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