hostconfig_solaris.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package runconfig
  2. import (
  3. "github.com/docker/docker/api/types/container"
  4. "github.com/docker/docker/pkg/sysinfo"
  5. )
  6. // DefaultDaemonNetworkMode returns the default network stack the daemon should
  7. // use.
  8. func DefaultDaemonNetworkMode() container.NetworkMode {
  9. return container.NetworkMode("bridge")
  10. }
  11. // IsPreDefinedNetwork indicates if a network is predefined by the daemon
  12. func IsPreDefinedNetwork(network string) bool {
  13. return false
  14. }
  15. // validateNetMode ensures that the various combinations of requested
  16. // network settings are valid.
  17. func validateNetMode(c *container.Config, hc *container.HostConfig) error {
  18. // We may not be passed a host config, such as in the case of docker commit
  19. return nil
  20. }
  21. // validateIsolation performs platform specific validation of the
  22. // isolation level in the hostconfig structure.
  23. // This setting is currently discarded for Solaris so this is a no-op.
  24. func validateIsolation(hc *container.HostConfig) error {
  25. return nil
  26. }
  27. // validateQoS performs platform specific validation of the QoS settings
  28. func validateQoS(hc *container.HostConfig) error {
  29. return nil
  30. }
  31. // validateResources performs platform specific validation of the resource settings
  32. func validateResources(hc *container.HostConfig, si *sysinfo.SysInfo) error {
  33. return nil
  34. }
  35. // validatePrivileged performs platform specific validation of the Privileged setting
  36. func validatePrivileged(hc *container.HostConfig) error {
  37. return nil
  38. }