From 8f2358eeaa59fe369eebc6186403f95c2d66e49b Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 23 Dec 2021 06:41:55 -0500 Subject: Add podman rm --depend This option causes Podman to not only remove the specified containers but all of the containers that depend on the specified containers. Fixes: https://github.com/containers/podman/issues/10360 Also ran codespell on the code Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-rm.1.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/source/markdown/podman-rm.1.md b/docs/source/markdown/podman-rm.1.md index c599c8687..f3807d2f7 100644 --- a/docs/source/markdown/podman-rm.1.md +++ b/docs/source/markdown/podman-rm.1.md @@ -18,6 +18,10 @@ Running or unusable containers will not be removed without the **-f** option. Remove all containers. Can be used in conjunction with **-f** as well. +#### **--depend** + +Remove selected container and recursively remove all containers that depend on it. + #### **--cidfile** Read container ID from the specified file and remove the container. Can be specified multiple times. @@ -56,6 +60,11 @@ Remove a container by its name *mywebserver* $ podman rm mywebserver ``` +Remove a *mywebserver* container and all of the containers that depend on it +``` +$ podman rm --depend mywebserver +``` + Remove several containers by name and container id. ``` $ podman rm mywebserver myflaskserver 860a4b23 -- cgit v1.2.3-54-g00ecf