Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Network → Create
AI-generatedSummary
Create a Docker network
Inputs
- networkName (required) — Name of the new network
- networkDriver — Network driver to use
- networkAttachable — Whether standalone containers can manually attach to the network
- networkInternal — Whether to restrict external access to the network
- networkEnableIpv6 — Whether to enable IPv6 on the network
- networkLabels — Labels to apply to the network
- networkAdvancedJson — Merged last and allowed to override the structured network create payload
Output shape
object representing the created network
Contains fields such as Id, Name, Driver, Internal, Attachable, EnableIpv6, and any provided Labels; may be empty on error
Examples
Example 1: Create a custom bridge network named my-net
"networkName":"my-net","networkDriver":"bridge"
Example 2: Create an attachable overlay network with labels
"networkName":"shared-net","networkDriver":"overlay","networkAttachable":true,"networkLabels":[{"name":"compose_project","value":"demo"}]