b3bca3af |
package daemon
import (
"os" |
e0ec0cc1 |
flag "github.com/docker/docker/pkg/mflag" |
b3bca3af |
)
var (
defaultPidFile = os.Getenv("programdata") + string(os.PathSeparator) + "docker.pid"
defaultGraph = os.Getenv("programdata") + string(os.PathSeparator) + "docker" |
041ba90d |
defaultExec = "windows" |
b3bca3af |
)
|
e0ec0cc1 |
// bridgeConfig stores all the bridge driver specific
// configuration.
type bridgeConfig struct {
VirtualSwitchName string
}
|
b3bca3af |
// Config defines the configuration of a docker daemon.
// These are the configuration settings that you pass |
81cc8ebc |
// to the docker daemon when you launch it with say: `docker daemon -e windows` |
b3bca3af |
type Config struct {
CommonConfig
// Fields below here are platform specific. (There are none presently
// for the Windows daemon.)
}
// InstallFlags adds command-line options to the top-level flag parser for
// the current process.
// Subsequent calls to `flag.Parse` will populate config with values parsed
// from the command-line. |
96ce3a19 |
func (config *Config) InstallFlags(cmd *flag.FlagSet, usageFn func(string) string) { |
b3bca3af |
// First handle install flags which are consistent cross-platform |
96ce3a19 |
config.InstallCommonFlags(cmd, usageFn) |
b3bca3af |
|
e0ec0cc1 |
// Then platform-specific install flags. |
b405e89d |
cmd.StringVar(&config.Bridge.VirtualSwitchName, []string{"b", "-bridge"}, "", "Attach containers to a virtual switch") |
b3bca3af |
} |