b3bca3af |
package daemon
import (
"os" |
7453d028 |
"path/filepath" |
e0ec0cc1 |
|
91e197d6 |
"github.com/docker/docker/api/types" |
31bf9ca0 |
"github.com/spf13/pflag" |
b3bca3af |
)
var ( |
7453d028 |
defaultPidFile string
defaultGraph = filepath.Join(os.Getenv("programdata"), "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.)
}
|
31bf9ca0 |
// InstallFlags adds flags to the pflag.FlagSet to configure the daemon
func (config *Config) InstallFlags(flags *pflag.FlagSet) { |
b3bca3af |
// First handle install flags which are consistent cross-platform |
31bf9ca0 |
config.InstallCommonFlags(flags) |
b3bca3af |
|
e0ec0cc1 |
// Then platform-specific install flags. |
31bf9ca0 |
flags.StringVar(&config.bridgeConfig.FixedCIDR, "fixed-cidr", "", "IPv4 subnet for fixed IPs")
flags.StringVarP(&config.bridgeConfig.Iface, "bridge", "b", "", "Attach containers to a virtual switch")
flags.StringVarP(&config.SocketGroup, "group", "G", "", "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
}
|
2790ac68 |
// GetInitPath returns the configure docker-init path
func (config *Config) GetInitPath() string {
return ""
}
|
7b2e5216 |
// GetDefaultRuntimeName returns the current default runtime
func (config *Config) GetDefaultRuntimeName() string { |
69af7d0d |
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 |
|
d3af5e3d |
// GetExecRoot returns the user configured Exec-root
func (config *Config) GetExecRoot() string {
return ""
}
|
ecffb6d5 |
func (config *Config) isSwarmCompatible() error {
return nil
} |