Docker Container Update
docker_container_updateUpdate a Docker container's restart policy, memory limit, or CPU shares on an fnOS NAS. Use the container ID to apply write changes to its runtime configuration.
Instructions
更新容器配置(写操作):重启策略 / 内存 / CPU 限制。
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_id": "<container_id>"
},
"name": "docker_container_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | NAS 主机地址(IP 或域名) | |
| port | No | NAS 端口,如 5667(HTTPS)/5666(HTTP)/443 | |
| scheme | No | 传输协议 | |
| profile | No | 独立 session profile 名称,默认使用 default | |
| restart | No | ||
| memory_mb | No | 内存上限(MB) | |
| cpu_shares | No | CPU 权重(shares) | |
| container_id | Yes | 容器 ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |