From 11e5c53d1191f7a324f212aa2ca2ec2aad1b4676 Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Wed, 1 Jan 2020 09:53:25 +0200 Subject: Add the rmi flag to podman-run to delete container image The --rmi flag will delete the container image after its execution unless that image is already been used by another container(s). This is useful when one wants to execute a container once and remove any resources attached to it. Signed-off-by: Boaz Shuster --- cmd/podman/cliconfig/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd/podman/cliconfig') diff --git a/cmd/podman/cliconfig/config.go b/cmd/podman/cliconfig/config.go index ccc30c603..79917946a 100644 --- a/cmd/podman/cliconfig/config.go +++ b/cmd/podman/cliconfig/config.go @@ -658,9 +658,10 @@ type VolumeRmValues struct { type CleanupValues struct { PodmanCommand - All bool - Latest bool - Remove bool + All bool + Latest bool + Remove bool + RemoveImage bool } type SystemPruneValues struct { -- cgit v1.2.3-54-g00ecf