Network Create Request
@Serializable
Parameters
name
The network's name.
driver
Name of the network driver plugin to use.
scope
The level at which the network exists (e.g. swarm for cluster-wide or local for machine level).
`internal`
Restrict external access to the network.
attachable
Globally scoped network is manually attachable by regular containers from workers in swarm mode.
ingress
Ingress network is the network which provides the routing-mesh in swarm mode.
config Only
Creates a config-only network. Config-only networks are placeholder networks for network configurations to be used by other networks. Config-only networks cannot be used directly to run containers or services.
config From
IPAM
enable IPv4
Enable IPv4 on the network.
enable IPv6
Enable IPv6 on the network.
options
Network specific options to be used by the drivers.
labels
User-defined key/value metadata.
Constructors
Link copied to clipboard
constructor(name: String, driver: String? = "bridge", scope: String? = null, internal: Boolean? = null, attachable: Boolean? = null, ingress: Boolean? = null, configOnly: Boolean? = false, configFrom: ConfigReference? = null, IPAM: IPAM? = null, enableIPv4: Boolean? = null, enableIPv6: Boolean? = null, options: Map<String, String>? = null, labels: Map<String, String>? = null)