Merge pull request #30740 from yongtang/29999-prune-filter-label

Add `label` filter for `docker system prune`
Upstream-commit: ec9d4dbdc6
Component: cli
This commit is contained in:
Vincent Demeester
2017-04-10 19:38:01 +02:00
committed by GitHub
7 changed files with 47 additions and 9 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ const warning = `WARNING! This will remove all stopped containers.
Are you sure you want to continue?`
func runPrune(dockerCli *command.DockerCli, opts pruneOptions) (spaceReclaimed uint64, output string, err error) {
pruneFilters := opts.filter.Value()
pruneFilters := command.PruneFilters(dockerCli, opts.filter.Value())
if !opts.force && !command.PromptForConfirmation(dockerCli.In(), dockerCli.Out(), warning) {
return