docker_networks
Perform Docker network management tasks, including listing, creating, removing, inspecting, and connecting/disconnecting containers to networks, using the Code MCP Server interface.
Instructions
Manage Docker networks
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Action to perform on networks | |
container | No | Container to connect/disconnect | |
driver | No | Network driver (bridge, overlay, host, etc.) | |
gateway | No | Gateway for network | |
network | No | Network name or ID | |
subnet | No | Subnet for network (e.g., 172.20.0.0/16) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Action to perform on networks",
"enum": [
"list",
"create",
"remove",
"inspect",
"connect",
"disconnect"
],
"type": "string"
},
"container": {
"description": "Container to connect/disconnect",
"type": "string"
},
"driver": {
"description": "Network driver (bridge, overlay, host, etc.)",
"type": "string"
},
"gateway": {
"description": "Gateway for network",
"type": "string"
},
"network": {
"description": "Network name or ID",
"type": "string"
},
"subnet": {
"description": "Subnet for network (e.g., 172.20.0.0/16)",
"type": "string"
}
},
"required": [
"action"
],
"type": "object"
}