Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Dockle

$ dockle Community Low Risk
Goodwithtech · Security & Secrets · Apache-2.0 · macos / linux / windows

Dockle 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.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install goodwithtech/r/dockle
CLI vs MCP Decision CLI Only

dockle -f json inspects local image layers and tarballs directly via Docker/OCI APIs without streaming gigabytes through an MCP server.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

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
Trust & Safety 24 / 25

Strictly read-only image layer and config inspector; never starts containers or modifies images.

  • Read-only image inspection without container execution
Setup & Portability 13 / 15

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 --input tar support
Utility & Efficiency 13 / 15

Complements CVE scanners like Trivy/Grype by catching Dockerfile misconfigurations and layer secrets fast.

  • Fast CIS Docker Benchmark + secret layer checks
Maintenance & Lineage 7 / 10

Mature Goodwithtech open-source tool (same creators as Trivy's early ecosystem); stable with slower recent commit cadence.

  • Maintained at goodwithtech/dockle
Docs & Verifiability 8 / 10

Clear README listing all CIS-DI-* and DKL-* checkpoints plus .dockleignore syntax.

  • Checkpoint catalog in GitHub README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Uses local Docker socket or ~/.docker/config.json / DOCKER_CONTENT_TRUST for private registries.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and open-source (Apache-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Lint container image and emit JSON report
dockle -f json --no-color nginx:latest

Checks nginx:latest against CIS container rules and prints structured JSON findings to stdout.

Lint an OCI tarball with ignored rule IDs as SARIF
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.tar mode plus -f json / -f sarif works cleanly in sandboxed CI/agent runners.
  • + Catches container hygiene flaws (root user, ADD vs COPY, leaked env/files) that CVE scanners miss.

Caveats & Pitfalls

  • ! Requires goodwithtech/r/dockle tap on Homebrew rather than core.
  • ! Upstream release cadence has slowed compared to newer Trivy misconfig checks.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI