config_solaris.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package daemon
  2. import (
  3. flag "github.com/docker/docker/pkg/mflag"
  4. )
  5. var (
  6. defaultPidFile = "/var/run/docker.pid"
  7. defaultGraph = "/var/lib/docker"
  8. defaultExec = "zones"
  9. )
  10. // Config defines the configuration of a docker daemon.
  11. // These are the configuration settings that you pass
  12. // to the docker daemon when you launch it with say: `docker -d -e lxc`
  13. type Config struct {
  14. CommonConfig
  15. // Fields below here are platform specific.
  16. ExecRoot string `json:"exec-root,omitempty"`
  17. }
  18. // bridgeConfig stores all the bridge driver specific
  19. // configuration.
  20. type bridgeConfig struct {
  21. commonBridgeConfig
  22. }
  23. // InstallFlags adds command-line options to the top-level flag parser for
  24. // the current process.
  25. // Subsequent calls to `flag.Parse` will populate config with values parsed
  26. // from the command-line.
  27. func (config *Config) InstallFlags(cmd *flag.FlagSet, usageFn func(string) string) {
  28. // First handle install flags which are consistent cross-platform
  29. config.InstallCommonFlags(cmd, usageFn)
  30. // Then platform-specific install flags
  31. config.attachExperimentalFlags(cmd, usageFn)
  32. }
  33. // GetExecRoot returns the user configured Exec-root
  34. func (config *Config) GetExecRoot() string {
  35. return config.ExecRoot
  36. }
  37. func (config *Config) isSwarmCompatible() error {
  38. return nil
  39. }