Skip to content

Commit

Permalink
Merge pull request moby#1795 from fcrisciani/sysctl_gc_thresh
Browse files Browse the repository at this point in the history
Fix OS tweaks call
  • Loading branch information
mavenugo authored Jun 7, 2017
2 parents 23a2381 + 233aa63 commit fad7182
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libnetwork/drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ func Fini(drv driverapi.Driver) {
}

func (d *driver) configure() error {

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

if d.store == nil {
return nil
}
Expand All @@ -188,9 +192,6 @@ func (d *driver) configure() error {
return d.initializeVxlanIdm()
}

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

return nil
}

Expand Down

0 comments on commit fad7182

Please sign in to comment.