compose_down
Stop and remove containers and networks defined in a Docker Compose project, with options to delete volumes and orphan containers.
Instructions
Stop and remove containers, networks (and optionally volumes) for a compose project.
args:
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
profiles - Profiles to consider
volumes - Also remove named volumes declared by the project (destructive)
remove_orphans - Remove containers not declared in the compose file
timeout_seconds - Subprocess timeout (default 300s)
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| volumes | No | ||
| profiles | No | ||
| project_dir | No | ||
| project_name | No | ||
| remove_orphans | No | ||
| timeout_seconds | No |