Configuration and runtime

Docker containers and images

Complete guide to Muteki's five container images (muteki-web, curated and heavy muteki-worker, src-egress, and src-browser), Compose dual-container architecture, permissions, and local build flags.

On this page

Muteki's container architecture spans the Web service image, curated and heavy Worker images, and managed SRC isolation containers. All Docker recipes live under docker/ in the main repository, and official multi-arch (linux/amd64 and linux/arm64) images are published via release-images.yml.

1. Container image overview#

Image / recipeTagBase & contentsHow it is built / updated
docker/web/Dockerfileghcr.io/fishcodetech/muteki-web:v0.5.2 / muteki-web:latestubuntu:24.04 + docker:cli + standalone Web package (Node + muteki-server); runs web or runnerOfficial releases or ./docker/web/build.sh
docker/worker/Dockerfileghcr.io/fishcodetech/muteki-worker:v0.5.2 / muteki-worker:latestPinned-digest kalilinux/kali-rolling + Node 24.14.0 + 9 pinned CLIs + chromium-headless-shell + chisel + Python tools + 5 pinned knowledge repos + Go static runtime_agentOfficial releases or ./docker/worker/build.sh
docker/worker/Dockerfile.heavymuteki-worker-heavy:latestLayered atop muteki-worker: adds Miniforge, Python 3.13, SageMath, and an isolated venv for angr and Volatility3Built locally on top of verified muteki-worker
docker/src-egress/Dockerfilemuteki-src-egress:latestpython:alpine + iptables / ip6tables + iproute2 + HTTP proxy gateway for SRC authorization & traffic captureAuto-built & refreshed by the Rust server via source_digest
docker/src-browser/Dockerfilemuteki-src-browser:latestnode:latest + chromium + agent-browser for controlled SRC browser sessions behind src-egressAuto-built & managed by the Rust server via source_digest

2. Inside the curated muteki-worker image#

  • Nine pinned CLI engines: Claude Code, Codex, Cursor, Pi, OMP, Kimi, Grok, OpenCode, and Droid. Versions are pinned in docker/worker-common/engines.json, checked against crates/server/src/agent_runtime/minimum_versions.json via capabilities.py --check-pins prior to installation, and verified with --version post-build (io.muteki.capabilities.schema=1). Host-only engines (Devin and Antigravity agy) are not inside the container image.
  • Browser & tunneling: System chromium-headless-shell (linked as /usr/bin/chromium), agent-browser, playwright (browser_coord.py), and static multi-arch chisel binaries (/usr/share/chisel-common-binaries/).
  • Security tooling & Python libs: Curated Kali packages from docker/worker/curated-packages.txt (including optional recon tools subfinder, httpx-toolkit, dnsx, katana, dalfox, gitleaks), plus verified Python packages pwn, z3, sympy, gmpy2, and pycryptodome.
  • Pinned knowledge bases & micro wordlists: Shallow-cloned pinned commits (PayloadsAllTheThings, InternalAllTheThings, Awesome-POC, vulhub, and nuclei-templates, indexed at /home/kali/KNOWLEDGE_INDEX.txt) plus /usr/share/wordlists/ctf-micro/.
  • Agent runtime & blackboard: Static Go /opt/muteki/runtime_agent entrypoint and /usr/local/bin/blackboard.py.

3. Worker container privileges, scope, and quotas#

  • Container root execution: Worker containers launch explicitly with --user 0:0; runtime_agent and all Agent child processes run as container UID/GID 0 (root). Workspace file ownership can be handed back to the host Runner user without changing Agent execution privileges.
  • Linux capabilities: Keeps Docker's default capabilities plus NET_ADMIN and SYS_PTRACE (for network utilities, routing, and gdb/strace debugging). Does not enable --privileged and no longer imposes cap-drop ALL or no-new-privileges.
  • Isolation boundaries: All Workers inside the same run (or across runs when using Shared container scope) execute under the same container user and can read each other's workspace files and injected credentials. For stronger kernel isolation, configure a custom OCI runtime (such as runsc gVisor or kata) under Worker settings → Runtime.
  • Resource quotas: Override container Memory, CPU, PIDs limit, Per-command output cap, and Workspace disk limit under Worker settings → Runtime. Changes apply to newly created containers; active runs keep the frozen image digest and quotas from creation time.

4. Docker Compose dual-container architecture#

docker-compose.release.yml and docker-compose.web.yml run two containers from the muteki-web image:

  1. runner: Overrides entrypoint to ["/opt/muteki/bin/muteki-server", "runner"], is the only container mounting /var/run/docker.sock, listens on ${MUTEKI_HOST_DATA_ROOT}/state/runner/control.sock, and serves sibling Workers via MUTEKI_CONTROL_CONNECT_HOST: runner.
  2. web: Waits for runner healthcheck, mounts ${MUTEKI_HOST_DATA_ROOT}/state/runner read-only, connects via MUTEKI_RUNNER_SOCKET, and binds host 127.0.0.1:3101 by default.
Text
Browser ──(HTTP :3101)──▶ web container (Next UI + Rust API, no Docker socket)
                            │
                            │ control.sock (:ro) + ${MUTEKI_HOST_DATA_ROOT}
                            ▼
                          runner container (mounts /var/run/docker.sock)
                            │
                            ├──▶ muteki-worker containers (Bridge / Host network)
                            └──▶ muteki-src-egress / muteki-src-browser containers

5. Local builds and mirror options#

Curated Worker image (muteki-worker:latest)#

Shell
# Run at repo root (auto-detects host arch, or pass image repo and amd64/arm64)
./docker/worker/build.sh

build.sh automates:

  1. Syncing engines.json / minimum_versions.json and cross-compiling static Go cmd/runtime-agent (falling back to golang:latest if Go is not installed on the host).
  2. Rewriting 127.0.0.1 / localhost in HTTP_PROXY / HTTPS_PROXY / ALL_PROXY to host.docker.internal for docker build.
  3. Running scripts/verify_worker_image.sh against all 9 container engines and core tools, recording versions in docker/worker/.last-engine-versions.txt.

Custom mirrors can be passed via environment variables:

Shell
MUTEKI_KALI_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/kali \
MUTEKI_NODE_MIRROR=https://npmmirror.com/mirrors/node \
MUTEKI_NPM_REGISTRY=https://registry.npmmirror.com \
  ./docker/worker/build.sh

Heavy layer (muteki-worker-heavy:latest)#

Shell
docker build \
  --build-arg WORKER_IMAGE=muteki-worker:latest \
  -f docker/worker/Dockerfile.heavy \
  -t muteki-worker-heavy:latest \
  docker/worker

angr (10.0.5) and volatility3 (2.28.2) are isolated inside /opt/muteki/heavy-python/bin/python (with vol linked to /usr/local/bin/vol) so they do not conflict with SageMath (/usr/local/bin/sage) or system Python.

Local muteki-web:latest image#

Shell
node scripts/package-web.mjs
./docker/web/build.sh ./dist/Muteki-Web-0.5.2-linux-amd64.tar.gz

6. SRC isolation containers (managed automatically)#

When using the SRC bounty workbench, the Rust server embeds the docker/src-egress/ and docker/src-browser/ build contexts and automatically builds or refreshes containers whenever muteki.src.source_digest changes:

  • muteki-src-egress:latest: Alpine + iptables / ip6tables + dual-layer HTTP/HTTPS proxy gateway enforcing scope allowlists, excluded_targets blocks, upstream proxy pools, and HTTP traffic capture.
  • muteki-src-browser:latest: Node + Chromium + agent-browser wired to the egress gateway so interactive research stays within authorized network boundaries.

Documentation pages

↑↓Select↵OpenescClose