Files
moby/daemon/network/network_mode_windows.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

13 lines
265 B
Go

package network
import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
)
const defaultNetwork = network.NetworkNat
func isPreDefined(network string) bool {
return !container.NetworkMode(network).IsUserDefined()
}