---
title: "POST /networks/create"
method: POST
path: "/networks/create"
---

# POST /networks/create

`POST /networks/create`

Create a network

## Request body

- object
  - `Name` string, required
  - `Driver` string
  - `Scope` string
  - `Internal` boolean
  - `Attachable` boolean
  - `Ingress` boolean
  - `ConfigOnly` boolean
  - `ConfigFrom` ConfigReference — The config-only network source to provide the configuration for this network.
    - `Network` string — The name of the config-only network that provides the network's configuration. The specified network must be an existing config-only network. Only network names are allowed, not network IDs.
  - `IPAM` IPAM
    - `Driver` string — Name of the IPAM driver to use.
    - `Config` IPAMConfig[] — List of IPAM configuration options, specified as a map: ``` {"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>} ```
      - `Subnet` string
      - `IPRange` string
      - `Gateway` string
      - `AuxiliaryAddresses` object
    - `Options` object — Driver-specific options, specified as a map.
  - `EnableIPv4` boolean
  - `EnableIPv6` boolean
  - `Options` object
  - `Labels` object

## Response `200`

The request has succeeded.

- NetworkCreateResponse — OK response to NetworkCreate operation
  - `Id` string, required — The ID of the created network.
  - `Warning` string, required — Warnings encountered when creating the container

---

[API](https://skmtc.net/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.net/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/versions/7dbd508c79cf/schema)
