mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
DisableNetworkBidge doesn't need to be public anymore
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
23bb6513a0
commit
67c254a60a
2 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
const (
|
||||
defaultNetworkMtu = 1500
|
||||
DisableNetworkBridge = "none"
|
||||
disableNetworkBridge = "none"
|
||||
)
|
||||
|
||||
// Config define the configuration of a docker daemon
|
||||
|
|
|
@ -690,8 +690,7 @@ func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error)
|
|||
if !config.EnableIptables && !config.InterContainerCommunication {
|
||||
return nil, fmt.Errorf("You specified --iptables=false with --icc=false. ICC uses iptables to function. Please set --icc or --iptables to true.")
|
||||
}
|
||||
// FIXME: DisableNetworkBidge doesn't need to be public anymore
|
||||
config.DisableNetwork = config.BridgeIface == DisableNetworkBridge
|
||||
config.DisableNetwork = config.BridgeIface == disableNetworkBridge
|
||||
|
||||
// Claim the pidfile first, to avoid any and all unexpected race conditions.
|
||||
// Some of the init doesn't need a pidfile lock - but let's not try to be smart.
|
||||
|
|
Loading…
Reference in a new issue