docker_restart
Restart Docker containers by name or ID to apply configuration changes, resolve issues, or update running services. Specify timeout and working directory for controlled container restarts.
Instructions
Restart one or more containers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containers | Yes | Container name(s) or ID(s) | |
| timeout | No | Seconds to wait before killing container | |
| cwd | No | Working directory |
Input Schema (JSON Schema)
{
"properties": {
"containers": {
"description": "Container name(s) or ID(s)",
"oneOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"timeout": {
"description": "Seconds to wait before killing container",
"type": "number"
}
},
"required": [
"containers"
],
"type": "object"
}