podman-kill(1)
π podman-kill β from the General Commands Manual, bestie
okay so picture this: you got containers and you need them GONE (or at least, you need to send a signal to whatever's running as the main process inside them). That's podman-kill, and she's the manual page for it. Slay.
β¨ NAME β¨
podman-kill β kill the main process in one or more containers π
πΈ SYNOPSIS πΈ
podman kill [options] [container ...]
podman container kill [options] [container ...]
Two ways to call her, same energy. Pick your fighter.
π¦ DESCRIPTION π¦
The main process inside each container you specify gets sent SIGKILL, or literally any other signal you want via the --signal option. That's it, that's the whole vibe. One process, one signal, no notes. β¨
π OPTIONS π
--all,-aβ signal all running and paused containers. Everyone gets the message, no one gets left out. π- *
--cidfile=file* β read the container ID out of the file you name, then kill that container. And yes bestie, you can drop this flag multiple times, each one with its own file. π --latest,-lβ instead of typing out a container name or ID like a peasant, just use the last created container. β Heads up though: the last started container might belong to other users of Podman on the same host machine. (Also, this option is not available with the remote Podman client, including Mac and Windows machines β excluding WSL2.) π--signal,-s=signal β the signal you're sending to the container. Wanna know more about Linux signals? Go readsignal(7), she's got lore. The default isSIGKILL. π§
π₯ EXAMPLE π₯
Kill a container by name:
podman kill mywebserver
Kill a container by ID:
podman kill 860a4b23
Terminate a container by sending the TERM signal:
podman kill --signal TERM 860a4b23
Kill the latest container. (Reminder: this option is not available with the remote Podman client, including Mac and Windows machines β excluding WSL2):
podman kill --latest
Terminate all containers by sending the KILL signal:
podman kill --signal KILL -a
Kill containers using the IDs stored in the files you give her:
podman kill --cidfile /home/user/cidfile-1
podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
π SEE ALSO π
podman(1), podman-stop(1) β go read these too, they're iconic, iykyk π
π HISTORY π
September 2017 β originally compiled by Brent Baude bbaude@redhat.com β¨mailto:bbaude@redhat.comβ©
and that's the whole page bestie, from the podman-kill(1) header all the way down to the podman-kill(1) footer β written September 2017, part of the General Commands Manual. go send some signals, you got this π«Άπ
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms