github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/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 func (config *Config) isSwarmCompatible() error { 42 return nil 43 }