Fix internal ipvlan network to work in swarm
Using dummy interface allows communication beween containers only if they are running on the same node in swarm. Signed-off-by: Pavel Matěja <pavel@verotel.cz>
This commit is contained in:
parent
b0bce9159e
commit
c7f8bfa001
1 changed files with 0 additions and 3 deletions
|
@ -194,12 +194,9 @@ func parseNetworkOptions(id string, option options.Generic) (*configuration, err
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// setting the parent to "" will trigger an isolated network dummy parent link
|
|
||||||
if val, ok := option[netlabel.Internal]; ok {
|
if val, ok := option[netlabel.Internal]; ok {
|
||||||
if internal, ok := val.(bool); ok && internal {
|
if internal, ok := val.(bool); ok && internal {
|
||||||
config.Internal = true
|
config.Internal = true
|
||||||
// empty --parent= and --internal are handled the same.
|
|
||||||
config.Parent = ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return config, nil
|
return config, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue