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)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| timeout | No | ||
| volumes_prune | No | ||
| remove_orphans | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||