REA container / environment-export notes (unofficial)
REA can export an agent environment bundle — including a pinned Dockerfile — so agentenv-framework can run agent-env run <dir>. This is not a general container-image reverse-engineering path. Prefer cli.md — Export an environment bundle.
Minimal path
rea environment-export manifest.json --evidence capture.json ./grafana-example --json
Optional --package-tarball copies a packed rea-agents tarball into the env folder (hosted-lane checkout proof). --name overrides the kebab-case env id when allowed.
Mental model
- Authenticate the same manifest+Evidence pair
environment-servewould accept. - The bundle predicts served state (replay when live state is unavailable).
- Docker here is for replaying an authorized capture, not cracking third-party images.
- Keep Evidence permissions tight; treat captures as sensitive case material.
Legal note
Only export captures you are authorized to retain and replay. Do not ask RepoRead for container escape, registry credential theft or malware-image weaponization help.
RepoRead is unofficial. Prefer agent-environments.md.
FAQ
Is this a Docker/OCI image reverse-engineering tool?
No. Upstream environment-export packages a verified manifest+Evidence capture into a runnable agentenv bundle (README, envs/<name>/Dockerfile, smoke task). It does not inventory arbitrary container layers or registry images as a general RE feature.
CLI shape?
rea environment-export <manifest.json> --evidence <capture.json> <dir> [--package-tarball <path>] [--name <override>]
What does the Dockerfile install?
Docs say the generated Dockerfile installs this exact rea-agents version and serves the copied manifest.json and evidence.json with environment-serve (mode 0600 on POSIX).
Can it overwrite an existing directory?
No. Upstream refuses to write into a directory that exists and is not empty, and never overwrites a file.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).