|
@@ -216,7 +216,7 @@ func (daemon *Daemon) ImagesPrune(ctx context.Context, pruneFilters filters.Args
|
|
if !until.IsZero() && img.Created.After(until) {
|
|
if !until.IsZero() && img.Created.After(until) {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
- if !matchLabels(pruneFilters, img.Config.Labels) {
|
|
|
|
|
|
+ if img.Config != nil && !matchLabels(pruneFilters, img.Config.Labels) {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
topImages[id] = img
|
|
topImages[id] = img
|