cri: fix using the pinned label to pin image
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user