mirror of https://github.com/docker/docs.git
Merge pull request #21587 from Microsoft/jjh/bridgeconfig
Windows: bridgeConfig rework
This commit is contained in:
commit
6114072ffc
|
@ -39,6 +39,13 @@ type LogConfig struct {
|
||||||
Config map[string]string `json:"log-opts,omitempty"`
|
Config map[string]string `json:"log-opts,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// commonBridgeConfig stores all the platform-common bridge driver specific
|
||||||
|
// configuration.
|
||||||
|
type commonBridgeConfig struct {
|
||||||
|
Iface string `json:"bridge,omitempty"`
|
||||||
|
FixedCIDR string `json:"fixed-cidr,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// CommonTLSOptions defines TLS configuration for the daemon server.
|
// CommonTLSOptions defines TLS configuration for the daemon server.
|
||||||
// It includes json tags to deserialize configuration from a file
|
// It includes json tags to deserialize configuration from a file
|
||||||
// using the same names that the flags in the command line uses.
|
// using the same names that the flags in the command line uses.
|
||||||
|
|
|
@ -38,15 +38,16 @@ type Config struct {
|
||||||
// bridgeConfig stores all the bridge driver specific
|
// bridgeConfig stores all the bridge driver specific
|
||||||
// configuration.
|
// configuration.
|
||||||
type bridgeConfig struct {
|
type bridgeConfig struct {
|
||||||
|
commonBridgeConfig
|
||||||
|
|
||||||
|
// Fields below here are platform specific.
|
||||||
EnableIPv6 bool `json:"ipv6,omitempty"`
|
EnableIPv6 bool `json:"ipv6,omitempty"`
|
||||||
EnableIPTables bool `json:"iptables,omitempty"`
|
EnableIPTables bool `json:"iptables,omitempty"`
|
||||||
EnableIPForward bool `json:"ip-forward,omitempty"`
|
EnableIPForward bool `json:"ip-forward,omitempty"`
|
||||||
EnableIPMasq bool `json:"ip-mask,omitempty"`
|
EnableIPMasq bool `json:"ip-mask,omitempty"`
|
||||||
EnableUserlandProxy bool `json:"userland-proxy,omitempty"`
|
EnableUserlandProxy bool `json:"userland-proxy,omitempty"`
|
||||||
DefaultIP net.IP `json:"ip,omitempty"`
|
DefaultIP net.IP `json:"ip,omitempty"`
|
||||||
Iface string `json:"bridge,omitempty"`
|
|
||||||
IP string `json:"bip,omitempty"`
|
IP string `json:"bip,omitempty"`
|
||||||
FixedCIDR string `json:"fixed-cidr,omitempty"`
|
|
||||||
FixedCIDRv6 string `json:"fixed-cidr-v6,omitempty"`
|
FixedCIDRv6 string `json:"fixed-cidr-v6,omitempty"`
|
||||||
DefaultGatewayIPv4 net.IP `json:"default-gateway,omitempty"`
|
DefaultGatewayIPv4 net.IP `json:"default-gateway,omitempty"`
|
||||||
DefaultGatewayIPv6 net.IP `json:"default-gateway-v6,omitempty"`
|
DefaultGatewayIPv6 net.IP `json:"default-gateway-v6,omitempty"`
|
||||||
|
|
|
@ -14,9 +14,7 @@ var (
|
||||||
// bridgeConfig stores all the bridge driver specific
|
// bridgeConfig stores all the bridge driver specific
|
||||||
// configuration.
|
// configuration.
|
||||||
type bridgeConfig struct {
|
type bridgeConfig struct {
|
||||||
FixedCIDR string
|
commonBridgeConfig
|
||||||
NetworkMode string
|
|
||||||
Iface string `json:"bridge,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config defines the configuration of a docker daemon.
|
// Config defines the configuration of a docker daemon.
|
||||||
|
|
Loading…
Reference in New Issue