Manage Container
manage_containerManage RouterOS containers: create with a pre-configured veth interface, start, stop, or remove them. Supports dry-run to preview changes before applying.
Instructions
Create, start, stop, or remove a RouterOS container. create needs a pre-configured veth interface; start/stop are no-ops when already in the target state; remove throws NOT_FOUND when absent. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| name | Yes | Container name — idempotency key | |
| remoteImage | No | Docker image to pull (required on create, e.g. alpine:latest) | |
| interface | No | veth interface name to attach the container to (required on create — must be pre-configured in RouterOS) | |
| rootDir | No | Root directory for container files | |
| envlist | No | RouterOS environment list name for container env vars | |
| comment | No | Optional comment | |
| dryRun | No | Preview changes without applying. |