Network & Volume
Create Network
Create a new Docker network in a specific environment
POST
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Finsys/dockhand/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Creates a new Docker network with the specified configuration. This endpoint supports all network drivers including bridge, overlay, macvlan, and custom drivers.Authentication
This endpoint requires authentication via cookies. The user must have thenetworks:create permission for the specified environment.
Query Parameters
The environment ID where the network will be created. Required parameter.
Request Body
Network name. Must be unique within the environment.
Network driver to use. Options:
bridge, host, overlay, macvlan, ipvlan, or custom driver name.Whether to restrict external access to the network. Internal networks have no connectivity to external networks.
Enable manual container attachment. Useful for swarm overlay networks that need standalone container access.
Create as swarm ingress network. Only one ingress network can exist per swarm.
Enable IPv6 networking.
Network driver options as key-value pairs.
User-defined labels as key-value pairs for organizing and identifying networks.
IP Address Management (IPAM) configuration.
Response
Whether the network was created successfully
The ID of the newly created network
Error Responses
Examples
Bridge Network
Create a standard bridge network for container communication:Overlay Network (Swarm)
Create an encrypted overlay network for swarm services:Macvlan Network
Create a macvlan network for containers that need physical network presence:Internal Network
Create an internal network with no external connectivity:Notes
- Network names must be unique within the environment
- The
namefield is required; all other fields are optional - Default driver is
bridgeif not specified - IPAM configuration is optional; Docker will auto-assign if not provided
- Network creation is audited with the user, action, and network details
- Built-in networks (bridge, host, none) cannot be created as they already exist
- For overlay networks, Docker must be running in swarm mode
