4af3389d43
Signed-off-by: John Howard (VM) <jhoward@ntdev.microsoft.com>
46 lines
1.4 KiB
Go
46 lines
1.4 KiB
Go
package runconfig
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/pkg/sysinfo"
|
|
)
|
|
|
|
// DefaultDaemonNetworkMode returns the default network stack the daemon should
|
|
// use.
|
|
func DefaultDaemonNetworkMode() container.NetworkMode {
|
|
return container.NetworkMode("bridge")
|
|
}
|
|
|
|
// IsPreDefinedNetwork indicates if a network is predefined by the daemon
|
|
func IsPreDefinedNetwork(network string) bool {
|
|
return false
|
|
}
|
|
|
|
// validateNetMode ensures that the various combinations of requested
|
|
// network settings are valid.
|
|
func validateNetMode(c *container.Config, hc *container.HostConfig) error {
|
|
// We may not be passed a host config, such as in the case of docker commit
|
|
return nil
|
|
}
|
|
|
|
// validateIsolation performs platform specific validation of the
|
|
// isolation level in the hostconfig structure.
|
|
// This setting is currently discarded for Solaris so this is a no-op.
|
|
func validateIsolation(hc *container.HostConfig) error {
|
|
return nil
|
|
}
|
|
|
|
// validateQoS performs platform specific validation of the QoS settings
|
|
func validateQoS(hc *container.HostConfig) error {
|
|
return nil
|
|
}
|
|
|
|
// 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 {
|
|
return nil
|
|
}
|