Remove a container
remove_containerDeletes a Docker container, optionally stopping it first and removing anonymous volumes, after confirming the destructive action.
Instructions
Remove a container, with force to stop it first if it's running, and with volumes to remove its anonymous volumes. Its data is gone. The server asks the person to confirm it, naming what goes; if they say no, nothing is done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"container": "<container>"
},
"name": "remove_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| volumes | No | ||
| container | Yes | The container's name or id, as its list gives it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| removed | Yes |