1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/volume
Yong Tang 7025247324 Add label filter for docker system prune
This fix tries to address the issue raised in 29999 where it was not
possible to mask these items (like important non-removable stuff)
from `docker system prune`.

This fix adds `label` and `label!` field for `--filter` in `system prune`,
so that it is possible to selectively prune items like:
```
$ docker container prune --filter label=foo

$ docker container prune --filter label!=bar
```

Additional unit tests and integration tests have been added.

This fix fixes 29999.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-04-06 09:11:25 -07:00
..
testdata Add unit tests to cli/command/volume package 2017-02-27 18:39:35 +01:00
client_test.go Add unit tests to cli/command/volume package 2017-02-27 18:39:35 +01:00
cmd.go Add missing API version annotations to commands 2017-03-16 13:40:12 +01:00
create.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
create_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
inspect.go Add unit tests to cli/command/volume package 2017-02-27 18:39:35 +01:00
inspect_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
list.go Add unit tests to cli/command/volume package 2017-02-27 18:39:35 +01:00
list_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
prune.go Add label filter for docker system prune 2017-04-06 09:11:25 -07:00
prune_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
remove.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
remove_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00