diff options
author | Karthik Elango <kelango@redhat.com> | 2022-07-20 16:23:13 -0400 |
---|---|---|
committer | Karthik Elango <kelango@redhat.com> | 2022-08-04 14:55:03 -0400 |
commit | cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b (patch) | |
tree | b47a7e62c202905d9ba2d592d0cfcf84152691ef /cmd/podman | |
parent | b0ef621ebf196fd61189aebff3161927f0049c52 (diff) | |
download | podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.gz podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.bz2 podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.zip |
remove image podman no prune
Signed-off-by: Karthik Elango <kelango@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/images/rm.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/rm.go b/cmd/podman/images/rm.go index d3fd17440..4e4b001ad 100644 --- a/cmd/podman/images/rm.go +++ b/cmd/podman/images/rm.go @@ -61,6 +61,7 @@ func imageRemoveFlagSet(flags *pflag.FlagSet) { flags.BoolVarP(&imageOpts.All, "all", "a", false, "Remove all images") flags.BoolVarP(&imageOpts.Ignore, "ignore", "i", false, "Ignore errors if a specified image does not exist") flags.BoolVarP(&imageOpts.Force, "force", "f", false, "Force Removal of the image") + flags.BoolVar(&imageOpts.NoPrune, "no-prune", false, "Do not remove dangling images") } func rm(cmd *cobra.Command, args []string) error { |