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:
baude
2020-12-23 11:02:52 -06:00
parent 54b82a175f
commit c81e29525b
6 changed files with 90 additions and 5 deletions

View File

@ -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)