mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
prevent image prune panic
Signed-off-by: Alfred Landrum <alfred.landrum@docker.com>
This commit is contained in:
parent
e925820bfd
commit
32da2a4234
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ func (daemon *Daemon) ImagesPrune(ctx context.Context, pruneFilters filters.Args
|
|||
if !until.IsZero() && img.Created.After(until) {
|
||||
continue
|
||||
}
|
||||
if !matchLabels(pruneFilters, img.Config.Labels) {
|
||||
if img.Config != nil && !matchLabels(pruneFilters, img.Config.Labels) {
|
||||
continue
|
||||
}
|
||||
topImages[id] = img
|
||||
|
|
Loading…
Add table
Reference in a new issue