daemon: endpoints on default nw aren't anonymous
They just happen to exist on a network that doesn't support DNS-based service discovery (ie. no embedded DNS servers are started for them). Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
74cf9a0f60
commit
1eb0751803
1 changed files with 1 additions and 2 deletions
|
@ -793,8 +793,7 @@ func buildCreateEndpointOptions(c *container.Container, n *libnetwork.Network, e
|
|||
var genericOptions = make(options.Generic)
|
||||
|
||||
nwName := n.Name()
|
||||
defaultNetName := runconfig.DefaultDaemonNetworkMode().NetworkName()
|
||||
if c.NetworkSettings.IsAnonymousEndpoint || (nwName == defaultNetName && !serviceDiscoveryOnDefaultNetwork()) {
|
||||
if c.NetworkSettings.IsAnonymousEndpoint {
|
||||
createOptions = append(createOptions, libnetwork.CreateOptionAnonymous())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue