mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix crash (loop?) in kubelet
This commit is contained in:
parent
c6158b8aa9
commit
9116c27040
@ -311,6 +311,9 @@ func GetRecentDockerContainersWithNameAndUUID(client DockerInterface, podFullNam
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
for _, dockerContainer := range containers {
|
for _, dockerContainer := range containers {
|
||||||
|
if len(dockerContainer.Names) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
dockerPodName, dockerUUID, dockerContainerName, _ := ParseDockerName(dockerContainer.Names[0])
|
dockerPodName, dockerUUID, dockerContainerName, _ := ParseDockerName(dockerContainer.Names[0])
|
||||||
if dockerPodName != podFullName {
|
if dockerPodName != podFullName {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user