Protect container-addrs against stopped containers
This commit is contained in:
1 parent
4b5fb2785e
commit
f9f6e8ed26
2 files changed
+8
No files matched your search
@@ -49,5 +49,9 @@ func getNetDevs(bridgeName string, c *docker.Client, containerID string) ([]comm
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if container.State.Pid == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return common.GetWeaveNetDevs(container.State.Pid)
|
||||
}
|
||||
Reference in new issue
Block a user