compose_restart
Restart all or selected Docker Compose services at a specified project path to recover containers or apply updated configuration without rebuilding.
Instructions
Restart compose services (docker compose restart).
Return Format
{"success": bool, "action": str, "message": str, "result": {"output": str, "stderr": str}} On failure: {"success": false, "error": str, "recovery_options": [...]}
Examples
compose_restart(path="D:/dev/myapp") compose_restart(path="D:/dev/myapp", services=["web"])
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_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| timeout | No | ||
| services | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||