REA .containerignore notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

.containerignore pins build-context exclude identity for Buildah/Podman/BuildKit-style builds. In REA 6.7.x, treat selected patterns as Evidence beside archive/package routes — complementing rea-dockerignore without inventing APIs.

Mental model

  1. Authorize the .containerignore (+ artifacts you hold).
  2. Quote selected exclude patterns you actually see (never paste secrets that somehow landed in ignore files).
  3. Cousins → dockerignore · gitignore-patterns · buildkit-toml · dockerfile.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_containerignore API REA never called.

Minimal path

# authorized .containerignore (+ artifact you hold)
# quote selected exclude patterns into case notes
# cousins → peer .dockerignore / .gitignore / buildkit.toml / Dockerfile lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_containerignore .

Compare

ArtifactHonest posture
.containerignoreContainer build-context exclude identity
Peerrea-dockerignore
Peerrea-buildkit-toml
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote exclude patterns and negation lines — enough for most Evidence binders.
  • Ignore files sometimes accidentally list secret filenames — record pattern shapes only; never paste secret values.
  • Keep .containerignore distinct from .dockerignore / .gitignore in case notes when both exist.
  • Build-context size and leak prevention are identity Evidence — label them separately from cousin pages.
  • Select patterns are useful inventory — quote them without inventing REA helpers for podman build / buildah bud.

Scope we will not cover

  • No inventing inspect_containerignore / automatic attacks against foreign build contexts.
  • No credential theft from paths listed in ignore files.
  • No pirate redistribution of proprietary container trees.
  • No crack framing via ignore pins.
  • No cookbooks that weaken ignore rules to exfiltrate secrets.

Honest limits

RepoRead documents config literacy — how authorized .containerignore trees relate to Evidence — not a full Buildah/Podman course. Prefer upstream container-tools docs for ignore semantics. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-dockerignore / rea-gitignore-patterns / rea-buildkit-toml?

rea-dockerignore covers Docker .dockerignore. rea-gitignore-patterns covers Git ignore. rea-buildkit-toml covers BuildKit daemon TOML. This page zooms on .containerignore exclude pins (Buildah/Podman/BuildKit-friendly) — it does not overwrite those pages.

Is there inspect_containerignore in 6.7.0?

Not assumed. Quote exclude patterns you actually open, then use documented package/archive lanes. Do not invent inspect_containerignore.

Does REA rewrite container ignores or steal secrets from them?

No. Local trees only. Do not treat REA as a container configurator; redact secrets in Evidence.

.containerignore vs .dockerignore?

Label Evidence by the file present. Many tools accept either name; keep this lane separate from rea-dockerignore when both files appear.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources