github.com/vvnotw/moby@v1.13.1/daemon/config_windows.go (about) 1 package daemon 2 3 import ( 4 "os" 5 "path/filepath" 6 7 "github.com/docker/docker/api/types" 8 "github.com/spf13/pflag" 9 ) 10 11 var ( 12 defaultPidFile string 13 defaultGraph = filepath.Join(os.Getenv("programdata"), "docker") 14 ) 15 16 // bridgeConfig stores all the bridge driver specific 17 // configuration. 18 type bridgeConfig struct { 19 commonBridgeConfig 20 } 21 22 // Config defines the configuration of a docker daemon. 23 // These are the configuration settings that you pass 24 // to the docker daemon when you launch it with say: `docker daemon -e windows` 25 type Config struct { 26 CommonConfig 27 28 // Fields below here are platform specific. (There are none presently 29 // for the Windows daemon.) 30 } 31 32 // InstallFlags adds flags to the pflag.FlagSet to configure the daemon 33 func (config *Config) InstallFlags(flags *pflag.FlagSet) { 34 // First handle install flags which are consistent cross-platform 35 config.InstallCommonFlags(flags) 36 37 // Then platform-specific install flags. 38 flags.StringVar(&config.bridgeConfig.FixedCIDR, "fixed-cidr", "", "IPv4 subnet for fixed IPs") 39 flags.StringVarP(&config.bridgeConfig.Iface, "bridge", "b", "", "Attach containers to a virtual switch") 40 flags.StringVarP(&config.SocketGroup, "group", "G", "", "Users or groups that can access the named pipe") 41 } 42 43 // GetRuntime returns the runtime path and arguments for a given 44 // runtime name 45 func (config *Config) GetRuntime(name string) *types.Runtime { 46 return nil 47 } 48 49 // GetInitPath returns the configure docker-init path 50 func (config *Config) GetInitPath() string { 51 return "" 52 } 53 54 // GetDefaultRuntimeName returns the current default runtime 55 func (config *Config) GetDefaultRuntimeName() string { 56 return stockRuntimeName 57 } 58 59 // GetAllRuntimes returns a copy of the runtimes map 60 func (config *Config) GetAllRuntimes() map[string]types.Runtime { 61 return map[string]types.Runtime{} 62 } 63 64 // GetExecRoot returns the user configured Exec-root 65 func (config *Config) GetExecRoot() string { 66 return "" 67 } 68 69 func (config *Config) isSwarmCompatible() error { 70 return nil 71 }