Skip to main content
Creates a new network with the given name.
Network commands are available on macOS 26 and later.

Usage

container network create [--label <label> ...] [--subnet <subnet>] [--subnet-v6 <subnet-v6>] [--debug] <name>

Arguments

name
string
required
Network name

Options

--label
string
Set metadata for a network (format: key=value)
--subnet
string
Set the IPv4 subnet for a network (CIDR format, e.g., 192.168.100.0/24)
--subnet-v6
string
Set the IPv6 prefix for a network (CIDR format, e.g., fd00:1234::/64)

Build docs developers (and LLMs) love