mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 21:21:42 +00:00
Disable built-in SD on docker0 network
Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
committed by
Tibor Vass
parent
84eaf42839
commit
3040ad3581
@@ -861,7 +861,7 @@ func (container *Container) buildCreateEndpointOptions(n libnetwork.Network) ([]
|
||||
createOptions = append(createOptions, libnetwork.EndpointOptionGeneric(genericOption))
|
||||
}
|
||||
|
||||
if n.Name() == "bridge" && !container.daemon.config().Bridge.InterContainerCommunication {
|
||||
if n.Name() == "bridge" {
|
||||
createOptions = append(createOptions, libnetwork.CreateOptionAnonymous())
|
||||
}
|
||||
|
||||
|
||||
@@ -404,8 +404,8 @@ func (s *DockerNetworkSuite) TestDockerNetworkDriverOptions(c *check.C) {
|
||||
|
||||
}
|
||||
|
||||
func (s *DockerDaemonSuite) TestDockerNetworkDiscoveryICCFalse(c *check.C) {
|
||||
// When icc == false, containers' etc/hosts should not be populated with containers' names
|
||||
func (s *DockerDaemonSuite) TestDockerNetworkNoDiscoveryDefaultBridgeNetwork(c *check.C) {
|
||||
// On default bridge network built-in service discovery should not happen
|
||||
hostsFile := "/etc/hosts"
|
||||
bridgeName := "external-bridge"
|
||||
bridgeIP := "192.169.255.254/24"
|
||||
@@ -413,7 +413,7 @@ func (s *DockerDaemonSuite) TestDockerNetworkDiscoveryICCFalse(c *check.C) {
|
||||
c.Assert(err, check.IsNil, check.Commentf(out))
|
||||
defer deleteInterface(c, bridgeName)
|
||||
|
||||
err = s.d.StartWithBusybox("--bridge", bridgeName, "--icc=false")
|
||||
err = s.d.StartWithBusybox("--bridge", bridgeName)
|
||||
c.Assert(err, check.IsNil)
|
||||
defer s.d.Restart()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user