Forráskód Böngészése

Merge pull request #33409 from alfred-landrum/image-prune-panic

prevent image prune panic
Akihiro Suda 8 éve
szülő
commit
bde4c89351
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      daemon/prune.go

+ 1 - 1
daemon/prune.go

@@ -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