1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- package daemon
- import (
- "github.com/spf13/pflag"
- )
- var (
- defaultPidFile = "/system/volatile/docker/docker.pid"
- defaultGraph = "/var/lib/docker"
- defaultExec = "zones"
- )
- // Config defines the configuration of a docker daemon.
- // These are the configuration settings that you pass
- // to the docker daemon when you launch it with say: `docker -d -e lxc`
- type Config struct {
- CommonConfig
- // These fields are common to all unix platforms.
- CommonUnixConfig
- }
- // bridgeConfig stores all the bridge driver specific
- // configuration.
- type bridgeConfig struct {
- commonBridgeConfig
- // Fields below here are platform specific.
- commonUnixBridgeConfig
- }
- // InstallFlags adds command-line options to the top-level flag parser for
- // the current process.
- func (config *Config) InstallFlags(flags *pflag.FlagSet) {
- // First handle install flags which are consistent cross-platform
- config.InstallCommonFlags(flags)
- // Then install flags common to unix platforms
- config.InstallCommonUnixFlags(flags)
- // Then platform-specific install flags
- config.attachExperimentalFlags(flags)
- }
- func (config *Config) isSwarmCompatible() error {
- return nil
- }
|