mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #88348 from tedyu/image-not-nil
Check that ImageInspect pointer is not nil
This commit is contained in:
commit
761c72f691
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user