From 233aa636d7b3dafa418c4be496645658772cd72d Mon Sep 17 00:00:00 2001 From: Flavio Crisciani Date: Tue, 6 Jun 2017 20:30:41 -0700 Subject: [PATCH] Fix OS tweaks call The feature was not getting properly triggered, move it as first operation in the configure Signed-off-by: Flavio Crisciani --- libnetwork/drivers/overlay/overlay.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libnetwork/drivers/overlay/overlay.go b/libnetwork/drivers/overlay/overlay.go index dc3e40c6d2c2e..8d19b2e1d4624 100644 --- a/libnetwork/drivers/overlay/overlay.go +++ b/libnetwork/drivers/overlay/overlay.go @@ -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 } @@ -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 }