Built-in Tool: Docker
Document ID: TRT-105
File Path: docs/07-tool-runtime/docker.md
Version: 1.0.0
Status: Draft
Owner: AI Platform Team
Last Updated: 2026-06-27
1. Purpose
Section titled “1. Purpose”The docker.* built-in tools let agents build and run containers for tasks that
need a containerized environment. This is a high-privilege tool, disabled by
default and confined to hardened worker pools.
2. Operations
Section titled “2. Operations”| Tool | Description |
|---|---|
docker.build | Build an image from a context |
docker.run | Run a container, capture output |
docker.images | List images |
docker.rm | Remove containers/images |
3. Schema (example: docker.run)
Section titled “3. Schema (example: docker.run)”// input{ "image": "node:20", "cmd": ["node","-v"], "timeout_ms": 60000 }// output{ "exit_code": 0, "stdout": "v20.x", "stderr": "" }4. Permissions
Section titled “4. Permissions”docker:run | docker:buildnet:egress:<registry> (image pull)Granting Docker effectively grants container execution; it requires a high-trust grant and tenant approval.
5. Sandbox & Safety
Section titled “5. Sandbox & Safety”- Not run via the host Docker socket. Container workloads execute on the isolated untrusted worker pool with a strong runtime (gVisor/Kata) (backends, K8s isolation).
- Image provenance/signatures are verified before run (supply chain).
- Resource limits and egress allowlists apply as for any tool.
- Disabled by default; enable per project explicitly (tool enablement).
6. Determinism & Caching
Section titled “6. Determinism & Caching”Side-effecting; never cached. Pin image digests for reproducibility.
7. Example
Section titled “7. Example”wovyr tools enable docker.run --project ciwovyr tools invoke docker.run --input '{"image":"alpine","cmd":["echo","hi"]}'8. Related
Section titled “8. Related”07-tool-runtime/sandbox-runtime.md07-tool-runtime/security-isolation.md12-deployment/kubernetes.md
9. Revision History
Section titled “9. Revision History”| Version | Date | Description |
|---|---|---|
| 1.0.0 | 2026-06-27 | Initial Docker tool spec |