Merge pull request #8867 from Iceber/pinned_image_label

cri: fix using the labels to pin image
This commit is contained in:
Phil Estes
2023-07-27 09:51:23 -04:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -213,6 +213,7 @@ func (s *store) add(img Image) error {
}
// Or else, merge and sort the references.
i.References = docker.Sort(util.MergeStringSlices(i.References, img.References))
i.Pinned = i.Pinned || img.Pinned
s.images[img.ID] = i
return nil
}