github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/cmd/dockerd/config_windows.go (about) 1 package main 2 3 import ( 4 "github.com/docker/docker/daemon/config" 5 "github.com/spf13/pflag" 6 ) 7 8 // installConfigFlags adds flags to the pflag.FlagSet to configure the daemon 9 func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) error { 10 // First handle install flags which are consistent cross-platform 11 if err := installCommonConfigFlags(conf, flags); err != nil { 12 return err 13 } 14 15 // Then platform-specific install flags. 16 flags.StringVar(&conf.BridgeConfig.FixedCIDR, "fixed-cidr", "", "IPv4 subnet for fixed IPs") 17 flags.StringVarP(&conf.BridgeConfig.Iface, "bridge", "b", "", "Attach containers to a virtual switch") 18 flags.StringVarP(&conf.SocketGroup, "group", "G", "", "Users or groups that can access the named pipe") 19 return nil 20 } 21 22 // configureCertsDir configures registry.CertsDir() depending on if the daemon 23 // is running in rootless mode or not. On Windows, it is a no-op. 24 func configureCertsDir() {}