86d8758e |
package runconfig
import ( |
91e197d6 |
"github.com/docker/docker/api/types/container" |
56f77d5a |
"github.com/docker/docker/pkg/sysinfo" |
86d8758e |
)
// DefaultDaemonNetworkMode returns the default network stack the daemon should
// use.
func DefaultDaemonNetworkMode() container.NetworkMode { |
934328d8 |
return container.NetworkMode("bridge") |
86d8758e |
}
// IsPreDefinedNetwork indicates if a network is predefined by the daemon
func IsPreDefinedNetwork(network string) bool {
return false
}
|
4af3389d |
// validateNetMode ensures that the various combinations of requested |
86d8758e |
// network settings are valid. |
4af3389d |
func validateNetMode(c *container.Config, hc *container.HostConfig) error { |
86d8758e |
// We may not be passed a host config, such as in the case of docker commit
return nil
}
|
4af3389d |
// validateIsolation performs platform specific validation of the |
86d8758e |
// isolation level in the hostconfig structure.
// This setting is currently discarded for Solaris so this is a no-op. |
4af3389d |
func validateIsolation(hc *container.HostConfig) error { |
86d8758e |
return nil
}
|
4af3389d |
// validateQoS performs platform specific validation of the QoS settings
func validateQoS(hc *container.HostConfig) error { |
86d8758e |
return nil
} |
56f77d5a |
|
4af3389d |
// validateResources performs platform specific validation of the resource settings
func validateResources(hc *container.HostConfig, si *sysinfo.SysInfo) error {
return nil
}
// validatePrivileged performs platform specific validation of the Privileged setting
func validatePrivileged(hc *container.HostConfig) error { |
56f77d5a |
return nil
} |