aiti-containers (Containers)
About 1 min
Containers (aiti-containers)
Wherever the containers are, the panel is there.
Modelled on microsoft/vscode-containers: runtime probing, resource aggregation and whitelisted actions — then the same surface exposed to the AI as agent tools. A person clicks the panel, the AI calls the tools; actions and safety rules are identical.
Capabilities
- Runtime auto-detection: docker / podman / nerdctl (with the compose subcommand); the
clifeature pins an executable. Detection failures explain themselves (permissions / daemon down / not installed). - Containers: state, ports and compose ownership at a glance; start / stop / restart / remove and log viewing.
- Compose projects: grouped by
com.docker.compose.projectwith whole-group up / restart / down / logs. - Images: list (dangling marked), pull / remove / prune.
- Volumes / networks: list, create / remove / prune.
- System:
system dfusage plussystem prune. - Exec inside containers: from the panel or a tool.
- Agent tools:
aiti_containers_state/aiti_containers_logs/aiti_containers_action/aiti_containers_exec, with acontainers-opstroubleshooting skill — the AI has something to follow when a container will not start.
Danger-confirmation protocol
| Entry | Behaviour |
|---|---|
| Panel | First click arms a "click again to confirm" (valid for 5 s) |
| API | Without confirm: true → HTTP 428 + { needConfirm: true, danger } |
| AI | Same response; the tool must show the exact action to the user and retry with confirm: true after explicit approval |
API
/api/extensions/aiti-containers/
| Method | Path | Purpose |
|---|---|---|
| GET | state[?kind=&refresh=1] | Aggregated state (containers / images / volumes / networks / usage / compose projects) |
| GET | runtime[?refresh=1] | Runtime probe result |
| GET | logs?kind=&id= or project=&dir=&tail= | Logs |
| GET | inspect?kind=&id= | Raw inspect JSON (truncated) |
| POST | action | { kind, action, id?, …, confirm? } |
Features
| id | Default | Meaning |
|---|---|---|
cli | auto | auto / docker / podman / nerdctl / executable path |
showStopped | on | Show stopped containers |
logTail | 200 | Default log lines (max 2000) |
confirmDanger | on | Master switch for the danger confirmation (keep it on) |
Boundaries
Kept: resource browsing, actions, logs, compose grouping and danger confirmation. Not built: Dockerfile / compose language services, scaffolding, in-container debugging, registry / ACR or Azure. The server uses Node built-ins only; the client has zero runtime dependencies.