diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2019-11-15 14:05:46 -0500 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2019-11-18 14:44:08 +0100 |
commit | 061bf77588c573668646fb07ded748c9bf375130 (patch) | |
tree | ab5a0374830213f887ce5aae4816d7bca567d2d9 /docs/source/markdown/podman-stop.1.md | |
parent | d7ed9fa188b502e155ddbf6b626cf8fbfc92bbb8 (diff) | |
download | podman-061bf77588c573668646fb07ded748c9bf375130.tar.gz podman-061bf77588c573668646fb07ded748c9bf375130.tar.bz2 podman-061bf77588c573668646fb07ded748c9bf375130.zip |
podman rm/stop --cidfile
Add a --cidfile flag to podman rm/stop to pass a container ID via a
file. Podman run already provides the functionaly to store the ID
in a specified file which we now complete with rm/stop. This allows
for a better life-cycle management in systemd services. Note that
--cdifile can be specified multiple times to rm/stop.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'docs/source/markdown/podman-stop.1.md')
-rw-r--r-- | docs/source/markdown/podman-stop.1.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-stop.1.md b/docs/source/markdown/podman-stop.1.md index b5ea670b0..5e8056e92 100644 --- a/docs/source/markdown/podman-stop.1.md +++ b/docs/source/markdown/podman-stop.1.md @@ -21,6 +21,10 @@ container and also via command line when creating the container. Stop 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 stop 860a4b235279 podman stop mywebserver 860a4b235279 +podman stop --cidfile /home/user/cidfile-1 + +podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2 + podman stop --timeout 2 860a4b235279 podman stop -a |