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/image
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
..
build Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
build.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
cmd.go refactor help func in CLI 2016-11-17 10:54:10 -08:00
history.go Restrict size to 2 fractional digits for docker images 2016-09-08 18:26:50 -07:00
import.go
inspect.go Fix typs from go to Go 2016-10-18 19:40:16 +08:00
list.go Add reference filter and deprecated filter param… 2016-11-11 15:34:01 +01:00
load.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
pull.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
push.go Merge pull request #30043 from dmcgowan/distribution-reference-update-1 2017-01-24 20:38:20 -08:00
remove.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
save.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
tag.go Change the docker-tag usage text to be clearer 2016-11-18 10:34:02 +02:00
trust.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
trust_test.go cli: Split out GetNotaryRepository and associated functions 2016-12-14 10:49:32 -08:00