Docker icon

Docker

Manage Docker containers, images, networks, volumes, and daemon metadata with Unix socket, TCP, TLS, or SSH connections

Network → Create

AI-generated

Summary

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"}]

Links

Discussion