1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

builder: ignore label and label! prune filters

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2018-11-20 23:31:50 +00:00
parent 369da264ba
commit 62923f29f5

View file

@ -146,6 +146,8 @@ func (b *Builder) Prune(ctx context.Context, opts types.BuildCachePruneOptions)
validFilters := make(map[string]bool, 1+len(cacheFields))
validFilters["unused-for"] = true
validFilters["until"] = true
validFilters["label"] = true // TODO(tiborvass): handle label
validFilters["label!"] = true // TODO(tiborvass): handle label!
for k, v := range cacheFields {
validFilters[k] = v
}