Manage Container
manage_containerCreate, start, stop, or remove RouterOS containers with pre-configured veth interfaces. Use dry-run to preview changes without applying.
Instructions
Create, start, stop, or remove a RouterOS container. create requires a pre-configured veth interface. start/stop are no-ops if the container is already in the target state. remove throws NOT_FOUND if the container does not exist. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| 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 |