Skip to content

Commit

Permalink
Merge pull request #9975 from MalteJ/dont-allocate-bridgeip
Browse files Browse the repository at this point in the history
Remove BridgeIP from ipallocation pool
  • Loading branch information
Jessie Frazelle committed Jan 8, 2015
2 parents 11e4799 + f4551b8 commit c438900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions daemon/networkdriver/bridge/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ func InitDriver(job *engine.Job) engine.Status {
}
}

// Block BridgeIP in IP allocator
ipallocator.RequestIP(bridgeNetwork, bridgeNetwork.IP)

// https://github.com/docker/docker/issues/2768
job.Eng.Hack_SetGlobalVar("httpapi.bridgeIP", bridgeNetwork.IP)

Expand Down
1 change: 0 additions & 1 deletion daemon/networkdriver/ipallocator/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func (allocated *allocatedMap) checkIP(ip net.IP) (net.IP, error) {

// Register the IP.
allocated.p[ip.String()] = struct{}{}
allocated.last.Set(pos)

return ip, nil
}
Expand Down

0 comments on commit c438900

Please sign in to comment.