github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/cmd/dockerd/config_windows.go (about)

     1  package main
     2  
     3  import (
     4  	"os"
     5  	"path/filepath"
     6  
     7  	"github.com/docker/docker/daemon/config"
     8  	"github.com/spf13/pflag"
     9  )
    10  
    11  func getDefaultPidFile() (string, error) {
    12  	return "", nil
    13  }
    14  
    15  func getDefaultDataRoot() (string, error) {
    16  	return filepath.Join(os.Getenv("programdata"), "docker"), nil
    17  }
    18  
    19  func getDefaultExecRoot() (string, error) {
    20  	return filepath.Join(os.Getenv("programdata"), "docker", "exec-root"), nil
    21  }
    22  
    23  // installConfigFlags adds flags to the pflag.FlagSet to configure the daemon
    24  func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
    25  	// First handle install flags which are consistent cross-platform
    26  	if err := installCommonConfigFlags(conf, flags); err != nil {
    27  		return err
    28  	}
    29  
    30  	// Then platform-specific install flags.
    31  	flags.StringVar(&conf.BridgeConfig.FixedCIDR, "fixed-cidr", "", "IPv4 subnet for fixed IPs")
    32  	flags.StringVarP(&conf.BridgeConfig.Iface, "bridge", "b", "", "Attach containers to a virtual switch")
    33  	flags.StringVarP(&conf.SocketGroup, "group", "G", "", "Users or groups that can access the named pipe")
    34  	return nil
    35  }