mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Check that ImageInspect pointer is not nil
This commit is contained in:
@@ -415,7 +415,7 @@ func (ds *dockerService) ContainerStatus(_ context.Context, req *runtimeapi.Cont
|
|||||||
|
|
||||||
labels, annotations := extractLabels(r.Config.Labels)
|
labels, annotations := extractLabels(r.Config.Labels)
|
||||||
imageName := r.Config.Image
|
imageName := r.Config.Image
|
||||||
if len(ir.RepoTags) > 0 {
|
if ir != nil && len(ir.RepoTags) > 0 {
|
||||||
imageName = ir.RepoTags[0]
|
imageName = ir.RepoTags[0]
|
||||||
}
|
}
|
||||||
status := &runtimeapi.ContainerStatus{
|
status := &runtimeapi.ContainerStatus{
|
||||||
|
Reference in New Issue
Block a user