Dockle
$ dockle Community Low RiskDockle inspects container images (from Docker daemon, OCI tarballs, or remote registries) against CIS Docker Benchmark best practices such as running as root, leaked credentials in layers, or unnecessary apt caches. It outputs JSON or SARIF via -f and supports --ignore and --no-color.
brew install goodwithtech/r/dockle dockle -f json inspects local image layers and tarballs directly via Docker/OCI APIs without streaming gigabytes through an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic headless image linter with -f json|sarif, --ignore, --exit-code, --no-color, and --input tarball support.
- Supports
-f json,-f sarif,--ignore,--no-color, and--input
Strictly read-only image layer and config inspector; never starts containers or modifies images.
- Read-only image inspection without container execution
Single Go binary via brew install goodwithtech/r/dockle and GitHub Releases; works with or without a running Docker daemon.
- Homebrew tap, binary releases, and daemonless
--inputtar support
Complements CVE scanners like Trivy/Grype by catching Dockerfile misconfigurations and layer secrets fast.
- Fast CIS Docker Benchmark + secret layer checks
Mature Goodwithtech open-source tool (same creators as Trivy's early ecosystem); stable with slower recent commit cadence.
- Maintained at goodwithtech/dockle
Clear README listing all CIS-DI-* and DKL-* checkpoints plus .dockleignore syntax.
- Checkpoint catalog in GitHub README
Security, Auth & Guardrails
Uses local Docker socket or ~/.docker/config.json / DOCKER_CONTENT_TRUST for private registries.
100% free and open-source (Apache-2.0).
# Dockle Agent Rules - Always pass `-f json --no-color` for machine parsing and prefer `--input <tar>` when no Docker daemon is running. - Use `--ignore <checkpoint-id>` only for documented exceptions rather than raising `--exit-level` blindly.
Agent-Ready Command Recipes
Safe Read-Only Queries
dockle -f json --no-color nginx:latest
Checks nginx:latest against CIS container rules and prints structured JSON findings to stdout.
dockle --input image.tar --ignore CIS-DI-0001 -f sarif -o dockle.sarif
Audits a local image.tar archive without needing a Docker daemon, ignores CIS-DI-0001, and writes SARIF.
Strengths for Agents
- + Daemonless
--input image.tarmode plus-f json/-f sarifworks cleanly in sandboxed CI/agent runners. - + Catches container hygiene flaws (root user,
ADDvsCOPY, leaked env/files) that CVE scanners miss.
Caveats & Pitfalls
- ! Requires
goodwithtech/r/dockletap on Homebrew rather than core. - ! Upstream release cadence has slowed compared to newer Trivy misconfig checks.