docker_restart
Restart a Docker container on a host, requiring confirm:true; set dry_run:true to preview the exact command without acting.
Instructions
Restart a container on a Docker host. This is a dangerous, service-impacting action: it requires confirm: true, and returns without acting if confirmation is missing. Set dry_run: true to see the exact command that would run without needing confirm at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | the inventory server name to check | |
| confirm | No | must be true to actually restart the container; otherwise the tool reports what it would do without acting | |
| dry_run | No | if true, report the exact command that would be run and return without acting or requiring confirm | |
| container | Yes | container name or ID to restart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | ||
| status | Yes | ||
| message | Yes | ||
| container | Yes | ||
| timestamp | Yes |