config_solaris.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package daemon
  2. import (
  3. "github.com/spf13/pflag"
  4. )
  5. var (
  6. defaultPidFile = "/system/volatile/docker/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. // These fields are common to all unix platforms.
  16. CommonUnixConfig
  17. }
  18. // bridgeConfig stores all the bridge driver specific
  19. // configuration.
  20. type bridgeConfig struct {
  21. commonBridgeConfig
  22. // Fields below here are platform specific.
  23. commonUnixBridgeConfig
  24. }
  25. // InstallFlags adds command-line options to the top-level flag parser for
  26. // the current process.
  27. func (config *Config) InstallFlags(flags *pflag.FlagSet) {
  28. // First handle install flags which are consistent cross-platform
  29. config.InstallCommonFlags(flags)
  30. // Then install flags common to unix platforms
  31. config.InstallCommonUnixFlags(flags)
  32. // Then platform-specific install flags
  33. config.attachExperimentalFlags(flags)
  34. }
  35. func (config *Config) isSwarmCompatible() error {
  36. return nil
  37. }