1package main
2
3import (
4	"os"
5	"path/filepath"
6
7	"github.com/docker/docker/daemon/config"
8	"github.com/spf13/pflag"
9)
10
11func getDefaultPidFile() (string, error) {
12	return "", nil
13}
14
15func getDefaultDataRoot() (string, error) {
16	return filepath.Join(os.Getenv("programdata"), "docker"), nil
17}
18
19func 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
24func 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}
36