mirror of
https://github.com/containerd/containerd.git
synced 2026-06-30 19:58:29 +00:00
Merge pull request #12763 from ningmingxiao/chekpoint_2
cri: fix create container panic if originalAnnotations is nil
This commit is contained in:
@@ -253,6 +253,9 @@ func (c *criService) CRImportCheckpoint(
|
||||
}
|
||||
|
||||
originalAnnotations := containerStatus.GetAnnotations()
|
||||
if originalAnnotations == nil {
|
||||
originalAnnotations = make(map[string]string)
|
||||
}
|
||||
originalLabels := containerStatus.GetLabels()
|
||||
|
||||
sandboxUID := sandboxConfig.GetMetadata().GetUid()
|
||||
|
||||
Reference in New Issue
Block a user