@@ -48,7 +48,7 @@ func newPruneCommand(dockerCli command.Cli) *cobra.Command {
4848 flags := cmd .Flags ()
4949 flags .BoolVarP (& options .force , "force" , "f" , false , "Do not prompt for confirmation" )
5050 flags .BoolVarP (& options .all , "all" , "a" , false , "Remove all unused images not just dangling ones" )
51- flags .BoolVar (& options .pruneVolumes , "volumes" , false , "Prune volumes" )
51+ flags .BoolVar (& options .pruneVolumes , "volumes" , false , "Prune anonymous volumes" )
5252 flags .Var (& options .filter , "filter" , `Provide filter values (e.g. "label=<key>=<value>")` )
5353 // "filter" flag is available in 1.28 (docker 17.04) and up
5454 flags .SetAnnotation ("filter" , "version" , []string {"1.28" })
@@ -114,7 +114,7 @@ func confirmationMessage(dockerCli command.Cli, options pruneOptions) string {
114114 "all networks not used by at least one container" ,
115115 }
116116 if options .pruneVolumes {
117- warnings = append (warnings , "all volumes not used by at least one container" )
117+ warnings = append (warnings , "all anonymous volumes not used by at least one container" )
118118 }
119119 if options .all {
120120 warnings = append (warnings , "all images without at least one container associated to them" )
0 commit comments