compose_down
Stops and removes Docker Compose containers for a project path, optionally pruning volumes and removing orphan containers. Use it to tear down a Compose stack and clean related resources.
Instructions
Stop and remove Compose containers (docker compose down).
Recovery: If down fails (e.g. bind mounts in use), stop consumers or use docker CLI for force removal.
Return Format
{"success": bool, "action": str, "message": str, "result": {"output": str, "stderr": str}} On failure: {"success": false, "error": str, "recovery_options": [...]}
Examples
compose_down(path="D:/dev/myapp") compose_down(path="D:/dev/myapp", volumes_prune=True)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compose_down"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| timeout | No | ||
| volumes_prune | No | ||
| remove_orphans | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||