Skip to content

Commit cbeeefe

Browse files
committed
fix(volume/prune): document label!= filter in --filter flag description
The --filter flag for 'docker volume prune' previously only showed 'label=<label>' as an example, not mentioning the negation form 'label!=<label>', even though it is valid and supported by the daemon. Fixes #6918 Signed-off-by: mohithshuka <153504854+mohithshuka@users.noreply.github.com>
1 parent 0015f6c commit cbeeefe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/volume/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func newPruneCommand(dockerCLI command.Cli) *cobra.Command {
5757
flags.BoolVarP(&options.all, "all", "a", false, "Remove all unused volumes, not just anonymous ones")
5858
flags.SetAnnotation("all", "version", []string{"1.42"})
5959
flags.BoolVarP(&options.force, "force", "f", false, "Do not prompt for confirmation")
60-
flags.Var(&options.filter, "filter", `Provide filter values (e.g. "label=<label>")`)
60+
flags.Var(&options.filter, "filter", `Provide filter values (e.g. "label=<label>" or "label!=<label>")`)
6161

6262
return cmd
6363
}

0 commit comments

Comments
 (0)