2017-01-23 06:23:07 -05:00
|
|
|
package config
|
2016-03-25 19:38:00 -04:00
|
|
|
|
|
|
|
import (
|
2016-06-21 16:42:47 -04:00
|
|
|
"github.com/spf13/pflag"
|
2016-03-25 19:38:00 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// Config defines the configuration of a docker daemon.
|
|
|
|
// These are the configuration settings that you pass
|
|
|
|
// to the docker daemon when you launch it with say: `docker -d -e lxc`
|
|
|
|
type Config struct {
|
|
|
|
CommonConfig
|
|
|
|
|
2016-06-07 03:45:21 -04:00
|
|
|
// These fields are common to all unix platforms.
|
|
|
|
CommonUnixConfig
|
2016-03-25 19:38:00 -04:00
|
|
|
}
|
|
|
|
|
2017-01-23 06:23:07 -05:00
|
|
|
// BridgeConfig stores all the bridge driver specific
|
2016-03-25 19:38:00 -04:00
|
|
|
// configuration.
|
2017-01-23 06:23:07 -05:00
|
|
|
type BridgeConfig struct {
|
2016-03-25 19:38:00 -04:00
|
|
|
commonBridgeConfig
|
2016-06-07 03:45:21 -04:00
|
|
|
|
|
|
|
// Fields below here are platform specific.
|
|
|
|
commonUnixBridgeConfig
|
2016-03-25 19:38:00 -04:00
|
|
|
}
|
|
|
|
|
2017-01-23 06:23:07 -05:00
|
|
|
// IsSwarmCompatible defines if swarm mode can be enabled in this config
|
|
|
|
func (conf *Config) IsSwarmCompatible() error {
|
2016-06-14 12:13:53 -04:00
|
|
|
return nil
|
|
|
|
}
|