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:
parent
369da264ba
commit
62923f29f5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue