cli icon indicating copy to clipboard operation
cli copied to clipboard

fix(volume/prune): document and test label! filter support

Open mohithshuka opened this issue 5 months ago • 0 comments

What does this PR do?

The --filter flag description for docker volume prune only mentioned label=<label> but not label!=<label>, making it inconsistent with docker system prune which documents both forms.

The label! filter already works correctly via the shared PruneFilters function — it was just undocumented and untested at the volume prune level.

Changes

  • Updated --filter flag description to include label!=<label> example
  • Added unit test for label! filter to match the existing label filter test

How to test

Fixes #6918

mohithshuka avatar Jun 14 '26 16:06 mohithshuka