docker_containers
Manage Docker containers by listing, starting, stopping, removing, inspecting, and monitoring them through the Code MCP Server.
Instructions
Manage Docker containers (list, start, stop, remove, etc.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "docker_containers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform on containers | |
| container | No | Container name or ID | |
| command | No | Command to execute (for exec action) | |
| follow | No | Follow log output (for logs action) | |
| tail | No | Number of lines to show from end of logs | |
| all | No | Show all containers including stopped ones | |
| force | No | Force operation | |
| volumes | No | Remove associated volumes (for remove action) |