mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #2513 from lavalamp/verifyNetwork
Fix crash (loop?) in kubelet
This commit is contained in:
commit
9f5ebef3d8
@ -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