mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +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
|
||||
}
|
||||
for _, dockerContainer := range containers {
|
||||
if len(dockerContainer.Names) == 0 {
|
||||
continue
|
||||
}
|
||||
dockerPodName, dockerUUID, dockerContainerName, _ := ParseDockerName(dockerContainer.Names[0])
|
||||
if dockerPodName != podFullName {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user