diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-17 11:17:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 11:17:21 -0400 |
commit | 93c3e03227bee7b3b6f58e8fe038965505bbfa69 (patch) | |
tree | d050bdd818271343491de8ac35fadeab723b9385 /cmd | |
parent | 62a7d4b61edb64ed92b63a4d65bde9f785fd1e19 (diff) | |
parent | 2a43fcf786a989862f732c829fa754b881cc8be7 (diff) | |
download | podman-93c3e03227bee7b3b6f58e8fe038965505bbfa69.tar.gz podman-93c3e03227bee7b3b6f58e8fe038965505bbfa69.tar.bz2 podman-93c3e03227bee7b3b6f58e8fe038965505bbfa69.zip |
Merge pull request #10363 from vrothberg/fix-10350
image prune: remove unused images only with `--all`
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/images/prune.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cmd/podman/images/prune.go b/cmd/podman/images/prune.go index 8231e5c57..6849d5971 100644 --- a/cmd/podman/images/prune.go +++ b/cmd/podman/images/prune.go @@ -15,10 +15,8 @@ import ( ) var ( - pruneDescription = `Removes all unnamed images from local storage. - - If an image is not being used by a container, it will be removed from the system.` - pruneCmd = &cobra.Command{ + pruneDescription = `Removes dangling or unused images from local storage.` + pruneCmd = &cobra.Command{ Use: "prune [options]", Args: validate.NoArgs, Short: "Remove unused images", @@ -41,7 +39,7 @@ func init() { }) flags := pruneCmd.Flags() - flags.BoolVarP(&pruneOpts.All, "all", "a", false, "Remove all unused images, not just dangling ones") + flags.BoolVarP(&pruneOpts.All, "all", "a", false, "Remove all images not in use by containers, not just dangling ones") flags.BoolVarP(&force, "force", "f", false, "Do not prompt for confirmation") filterFlagName := "filter" |