summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrycja Guzik <patrycja.k.guzik@gmail.com>2022-04-04 22:20:52 +0200
committerPatrycja Guzik <patrycja.k.guzik@gmail.com>2022-04-04 22:46:28 +0200
commitdd9eec06a33470f0dcaa449bdd96fc50d2ad2fea (patch)
tree74b11f1c749a23d0b98f8984a7aa4ccc1d39d384 /docs
parent839744af56ee6a3e54c63eb8da495974666dfdeb (diff)
downloadpodman-dd9eec06a33470f0dcaa449bdd96fc50d2ad2fea.tar.gz
podman-dd9eec06a33470f0dcaa449bdd96fc50d2ad2fea.tar.bz2
podman-dd9eec06a33470f0dcaa449bdd96fc50d2ad2fea.zip
Unify examples section across several man pages: init/kill
Signed-off-by: Patrycja Guzik <patrycja.k.guzik@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/source/markdown/podman-init.1.md10
-rw-r--r--docs/source/markdown/podman-kill.1.md19
-rw-r--r--docs/source/markdown/podman-pod-kill.1.md15
3 files changed, 42 insertions, 2 deletions
diff --git a/docs/source/markdown/podman-init.1.md b/docs/source/markdown/podman-init.1.md
index d771c92f3..9525f610c 100644
--- a/docs/source/markdown/podman-init.1.md
+++ b/docs/source/markdown/podman-init.1.md
@@ -29,12 +29,20 @@ to run containers such as CRI-O, the last started container could be from either
## EXAMPLE
+Initialize container with a given ID
+```
podman init 35480fc9d568
+```
+Initialize container with a given name
+```
podman init test1
+```
+Initialize the latest container created by Podman
+```
podman init --latest
-
+```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-start(1)](podman-start.1.md)**
diff --git a/docs/source/markdown/podman-kill.1.md b/docs/source/markdown/podman-kill.1.md
index 79d93bc4e..35ca9f74f 100644
--- a/docs/source/markdown/podman-kill.1.md
+++ b/docs/source/markdown/podman-kill.1.md
@@ -32,19 +32,36 @@ Signal to send to the container. For more information on Linux signals, refer to
## EXAMPLE
+Kill container with a given name
+```
podman kill mywebserver
+```
+Kill container with a given ID
+```
podman kill 860a4b23
+```
+Terminate container by sending `TERM` signal
+```
podman kill --signal TERM 860a4b23
+```
+Kill the latest container created by Podman
+```
podman kill --latest
+```
+Terminate all containers by sending `KILL` signal
+```
podman kill --signal KILL -a
+```
+Kill container using ID specified in a given files
+```
podman kill --cidfile /home/user/cidfile-1
-
podman kill --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
+```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-stop(1)](podman-stop.1.md)**
diff --git a/docs/source/markdown/podman-pod-kill.1.md b/docs/source/markdown/podman-pod-kill.1.md
index 45b61c620..96ced68a7 100644
--- a/docs/source/markdown/podman-pod-kill.1.md
+++ b/docs/source/markdown/podman-pod-kill.1.md
@@ -26,15 +26,30 @@ Signal to send to the containers in the pod. For more information on Linux signa
## EXAMPLE
+Kill pod with a given name
+```
podman pod kill mywebserver
+```
+Kill pod with a given ID
+```
podman pod kill 860a4b23
+```
+Terminate pod by sending `TERM` signal
+```
podman pod kill --signal TERM 860a4b23
+```
+Kill the latest pod created by Podman
+```
podman pod kill --latest
+```
+Terminate all pods by sending `KILL` signal
+```
podman pod kill --all
+```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-pod(1)](podman-pod.1.md)**, **[podman-pod-stop(1)](podman-pod-stop.1.md)**