diff --git a/cmd/podman/cliconfig/config.go b/cmd/podman/cliconfig/config.go index 780b683331..ff38064f75 100644 --- a/cmd/podman/cliconfig/config.go +++ b/cmd/podman/cliconfig/config.go @@ -175,7 +175,8 @@ type HistoryValues struct { } type PruneImagesValues struct { PodmanCommand - All bool + All bool + Force bool } type PruneContainersValues struct { diff --git a/cmd/podman/images_prune.go b/cmd/podman/images_prune.go index 5745edd6b7..e17728b209 100644 --- a/cmd/podman/images_prune.go +++ b/cmd/podman/images_prune.go @@ -34,6 +34,7 @@ func init() { pruneImagesCommand.SetUsageTemplate(UsageTemplate()) flags := pruneImagesCommand.Flags() flags.BoolVarP(&pruneImagesCommand.All, "all", "a", false, "Remove all unused images, not just dangling ones") + flags.BoolVarP(&pruneImagesCommand.Force, "force", "f", false, "Do not prompt for confirmation on pruning images") } func pruneImagesCmd(c *cliconfig.PruneImagesValues) error {