c8d/list: Handle missing configs in label filter
Don't error out the filter if an image config is missing. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
6f3892dc99
commit
89dc2860ba
1 changed files with 3 additions and 0 deletions
|
@ -568,6 +568,9 @@ func setupLabelFilter(store content.Store, fltrs filters.Args) (func(image image
|
|||
}
|
||||
var cfg configLabels
|
||||
if err := readConfig(ctx, store, desc, &cfg); err != nil {
|
||||
if errdefs.IsNotFound(err) {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue