github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/daemon/config_solaris.go (about) 1 package daemon 2 3 import ( 4 "github.com/spf13/pflag" 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 func (config *Config) InstallFlags(flags *pflag.FlagSet) { 32 // First handle install flags which are consistent cross-platform 33 config.InstallCommonFlags(flags) 34 35 // Then platform-specific install flags 36 config.attachExperimentalFlags(flags) 37 } 38 39 // GetExecRoot returns the user configured Exec-root 40 func (config *Config) GetExecRoot() string { 41 return config.ExecRoot 42 } 43 func (config *Config) isSwarmCompatible() error { 44 return nil 45 }