mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
16 lines
328 B
Go
16 lines
328 B
Go
//go:build !windows
|
|
|
|
package network
|
|
|
|
import (
|
|
"github.com/moby/moby/api/types/container"
|
|
"github.com/moby/moby/api/types/network"
|
|
)
|
|
|
|
const defaultNetwork = network.NetworkBridge
|
|
|
|
func isPreDefined(network string) bool {
|
|
n := container.NetworkMode(network)
|
|
return n.IsBridge() || n.IsHost() || n.IsNone() || n.IsDefault()
|
|
}
|