4 "github.com/docker/docker/api/types/container"
5 "github.com/docker/docker/pkg/sysinfo"
8 // DefaultDaemonNetworkMode returns the default network stack the daemon should
10 func DefaultDaemonNetworkMode() container.NetworkMode {
11 return container.NetworkMode("bridge")
14 // IsPreDefinedNetwork indicates if a network is predefined by the daemon
15 func IsPreDefinedNetwork(network string) bool {
19 // validateNetMode ensures that the various combinations of requested
20 // network settings are valid.
21 func validateNetMode(c *container.Config, hc *container.HostConfig) error {
22 // We may not be passed a host config, such as in the case of docker commit
26 // validateIsolation performs platform specific validation of the
27 // isolation level in the hostconfig structure.
28 // This setting is currently discarded for Solaris so this is a no-op.
29 func validateIsolation(hc *container.HostConfig) error {
33 // validateQoS performs platform specific validation of the QoS settings
34 func validateQoS(hc *container.HostConfig) error {
38 // validateResources performs platform specific validation of the resource settings
39 func validateResources(hc *container.HostConfig, si *sysinfo.SysInfo) error {
43 // validatePrivileged performs platform specific validation of the Privileged setting
44 func validatePrivileged(hc *container.HostConfig) error {