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