b3bca3af |
package daemon
import (
"os" |
e0ec0cc1 |
flag "github.com/docker/docker/pkg/mflag" |
7b2e5216 |
"github.com/docker/engine-api/types" |
b3bca3af |
)
var ( |
77a50ffa |
defaultPidFile = os.Getenv("programdata") + string(os.PathSeparator) + "docker.pid"
defaultGraph = os.Getenv("programdata") + string(os.PathSeparator) + "docker" |
b3bca3af |
)
|
e0ec0cc1 |
// bridgeConfig stores all the bridge driver specific
// configuration.
type bridgeConfig struct { |
ff3525c8 |
commonBridgeConfig |
e0ec0cc1 |
}
|
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. |
e8026d8a |
cmd.StringVar(&config.bridgeConfig.FixedCIDR, []string{"-fixed-cidr"}, "", usageFn("IPv4 subnet for fixed IPs"))
cmd.StringVar(&config.bridgeConfig.Iface, []string{"b", "-bridge"}, "", "Attach containers to a virtual switch") |
0906195f |
cmd.StringVar(&config.SocketGroup, []string{"G", "-group"}, "", usageFn("Users or groups that can access the named pipe")) |
b3bca3af |
} |
7b2e5216 |
// GetRuntime returns the runtime path and arguments for a given
// runtime name
func (config *Config) GetRuntime(name string) *types.Runtime {
return nil
}
// GetDefaultRuntimeName returns the current default runtime
func (config *Config) GetDefaultRuntimeName() string { |
7a5e247d |
return stockRuntimeName |
7b2e5216 |
}
// GetAllRuntimes returns a copy of the runtimes map
func (config *Config) GetAllRuntimes() map[string]types.Runtime {
return map[string]types.Runtime{}
} |
ecffb6d5 |
|
1cc85c17 |
// GetExecRoot returns the user configured Exec-root
func (config *Config) GetExecRoot() string {
return ""
}
|
ecffb6d5 |
func (config *Config) isSwarmCompatible() error {
return nil
} |