From c7f8bfa0010f6f92c875e0c11df7ecd397eca35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Mat=C4=9Bja?= Date: Thu, 20 Feb 2020 17:18:22 +0000 Subject: [PATCH] Fix internal ipvlan network to work in swarm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using dummy interface allows communication beween containers only if they are running on the same node in swarm. Signed-off-by: Pavel Matěja --- libnetwork/drivers/ipvlan/ipvlan_network.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libnetwork/drivers/ipvlan/ipvlan_network.go b/libnetwork/drivers/ipvlan/ipvlan_network.go index 3d2b822301..1b90cbc6a3 100644 --- a/libnetwork/drivers/ipvlan/ipvlan_network.go +++ b/libnetwork/drivers/ipvlan/ipvlan_network.go @@ -194,12 +194,9 @@ func parseNetworkOptions(id string, option options.Generic) (*configuration, err return nil, err } } - // setting the parent to "" will trigger an isolated network dummy parent link if val, ok := option[netlabel.Internal]; ok { if internal, ok := val.(bool); ok && internal { config.Internal = true - // empty --parent= and --internal are handled the same. - config.Parent = "" } } return config, nil