Docker Network API

Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /networks List Docker networks · List networks #
Ask an LLM
“Which Docker networks exist on my host?”
“Can I list only networks that are dangling or unused?”
Tell an agent
List all Docker networks.
List networks matching filters {filters}.
GET /networks/{id} Inspect a Docker network · Inspect a network #
Ask an LLM
“What are the details of a particular Docker network?”
“Can I get verbose troubleshooting output for a network?”
Tell an agent
Inspect network {id}.
Show network {id} with verbose output {verbose}.
DELETE /networks/{id} Remove a Docker network · Remove a network #
Ask an LLM
“How do I delete a Docker network I no longer use?”
“Can I remove a network by its name?”
Tell an agent destructive · confirm first
Remove network {id}.
Delete the Docker network {id}.
POST /networks/create Create a Docker network · Create a network #
Ask an LLM
“How do I create a new Docker network?”
“Can I create an internal or attachable network?”
Tell an agent
Create a network named {Name}.
Create network {Name} with driver {Driver} and scope {Scope}.
POST /networks/{id}/connect Connect a container to a network · Connect a container to a network #
Ask an LLM
“How do I attach a container to a network?”
“Can I set endpoint configuration when connecting a container?”
Tell an agent
Connect container {Container} to network {id}.
Attach {Container} to network {id} with endpoint config {EndpointConfig}.
POST /networks/{id}/disconnect Disconnect a container from a network · Disconnect a container from a network #
Ask an LLM
“How do I detach a container from a network?”
“Can I force a container off a network?”
Tell an agent
Disconnect container {Container} from network {id}.
Force {Container} off network {id}.
POST /networks/prune Delete unused networks · Delete unused networks #
Ask an LLM
“How do I clean up networks that are no longer used?”
“Can I prune networks created before a certain time?”
Tell an agent destructive · confirm first
Prune unused Docker networks.
Remove networks matching filters {filters}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/docker:docker-network-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

docker-network-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Docker Engine Network API
  version: '1.54'
  x-logo:
    url: https://docs.docker.com/assets/images/logo-docker-main.png
  description: The Engine API is an HTTP API served by Docker Engine.
servers:
- url: /v1.54
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/docker/openapi/docker-network-api-openapi.yml