Make podman run --rmi automatically set --rm

Forcing users to set --rm when setting --rmi is just bad UI.
If I want the image to be removed, it implies that I want the
container removed that I am creating.

Fixes: https://github.com/containers/podman/issues/15640

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2023-08-02 08:33:03 -04:00
parent cd5ce63724
commit f3ebd798c6
3 changed files with 14 additions and 3 deletions

View File

@ -347,7 +347,7 @@ the container when it exits. The default is **false**.
#### **--rmi**
After exit of the container, remove the image unless another
container is using it. The default is *false*.
container is using it. Implies --rm=true on the new container. The default is *false*.
@@option rootfs