mirror of
https://github.com/containers/podman.git
synced 2025-07-25 09:05:00 +08:00
add --cidfile to container kill
Add the ability to read container ids from one or more files for the kill command. Fixes: #8443 Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -16,6 +16,10 @@ The main process inside each container specified will be sent SIGKILL, or any si
|
||||
|
||||
Signal all running containers. This does not include paused containers.
|
||||
|
||||
#### **--cidfile**
|
||||
|
||||
Read container ID from the specified file and remove the container. Can be specified multiple times.
|
||||
|
||||
#### **--latest**, **-l**
|
||||
|
||||
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
|
||||
@ -40,6 +44,10 @@ podman kill --latest
|
||||
|
||||
podman kill --signal KILL -a
|
||||
|
||||
podman kill --cidfile /home/user/cidfile-1
|
||||
|
||||
podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
|
||||
|
||||
## SEE ALSO
|
||||
podman(1), podman-stop(1)
|
||||
|
||||
|
Reference in New Issue
Block a user