Files
moby/daemon/network/network_mode.go
Sebastiaan van Stijn d22d8a78f1 runconfig: deprecate IsPreDefinedNetwork
Move the function internal to the daemon, where it's used. Deliberately
not mentioning the new location, as this function should not be used
externally.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-20 11:10:54 +02:00

14 lines
513 B
Go

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)
}