config_windows.go 927 B

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