mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Do not try LB populate on interface-less endpoint
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
06a391f013
commit
b551a61694
1 changed files with 5 additions and 0 deletions
|
@ -267,6 +267,11 @@ func (n *network) connectedLoadbalancers() []*loadBalancer {
|
|||
func (sb *sandbox) populateLoadbalancers(ep *endpoint) {
|
||||
var gwIP net.IP
|
||||
|
||||
// This is an interface less endpoint. Nothing to do.
|
||||
if ep.Iface() == nil {
|
||||
return
|
||||
}
|
||||
|
||||
n := ep.getNetwork()
|
||||
eIP := ep.Iface().Address()
|
||||
|
||||
|
|
Loading…
Reference in a new issue