cli
cli copied to clipboard
fix(volume/prune): document and test label! filter support
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
--filterflag description to includelabel!=<label>example - Added unit test for
label!filter to match the existinglabelfilter test
How to test
Fixes #6918