dotcloud/docker

View on GitHub
daemon/network/network_mode.go

Summary

Maintainability
A
0 mins
Test Coverage
package network

// DefaultNetwork is the name of the default network driver to use for containers
// on the daemon platform. The default for Linux containers is "bridge"
// ([network.NetworkBridge]), and "nat" ([network.NetworkNat]) for Windows
// containers.
const DefaultNetwork = defaultNetwork

// IsPredefined indicates if a network is predefined by the daemon.
func IsPredefined(network string) bool {
    // TODO(thaJeztah): check if we can align the check for both platforms
    return isPreDefined(network)
}