github.com/DaoCloud/dao@v0.0.0-20161212064103-c3dbfd13ee36/daemon/config_solaris.go (about) 1 package daemon 2 3 import ( 4 flag "github.com/docker/docker/pkg/mflag" 5 ) 6 7 var ( 8 defaultPidFile = "/var/run/docker.pid" 9 defaultGraph = "/var/lib/docker" 10 defaultExec = "zones" 11 ) 12 13 // Config defines the configuration of a docker daemon. 14 // These are the configuration settings that you pass 15 // to the docker daemon when you launch it with say: `docker -d -e lxc` 16 type Config struct { 17 CommonConfig 18 19 // Fields below here are platform specific. 20 ExecRoot string `json:"exec-root,omitempty"` 21 } 22 23 // bridgeConfig stores all the bridge driver specific 24 // configuration. 25 type bridgeConfig struct { 26 commonBridgeConfig 27 } 28 29 // InstallFlags adds command-line options to the top-level flag parser for 30 // the current process. 31 // Subsequent calls to `flag.Parse` will populate config with values parsed 32 // from the command-line. 33 func (config *Config) InstallFlags(cmd *flag.FlagSet, usageFn func(string) string) { 34 // First handle install flags which are consistent cross-platform 35 config.InstallCommonFlags(cmd, usageFn) 36 37 // Then platform-specific install flags 38 config.attachExperimentalFlags(cmd, usageFn) 39 } 40 41 // GetExecRoot returns the user configured Exec-root 42 func (config *Config) GetExecRoot() string { 43 return config.ExecRoot 44 } 45 func (config *Config) isSwarmCompatible() error { 46 return nil 47 }