create_network
Create a Docker network with custom driver, IPAM, and options. Configure internal access, IPv6, and labels for isolated or swarm use.
Instructions
Create a network.
args: name - The name of the network driver - Driver name (e.g. bridge, overlay) options - Driver-specific options ipam - IPAM configuration as a dict check_duplicate - Reject creation if a duplicate name exists internal - Restrict external access labels - Labels to set on the network enable_ipv6 - Enable IPv6 networking attachable - Allow standalone containers to attach (swarm) scope - Network scope (local, global, swarm) ingress - Make this an ingress network for swarm routing-mesh returns: dict - The created network's attrs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipam | No | ||
| name | Yes | ||
| scope | No | ||
| driver | No | ||
| labels | No | ||
| ingress | No | ||
| options | No | ||
| internal | No | ||
| attachable | No | ||
| enable_ipv6 | No | ||
| check_duplicate | No |