More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Container Config Checker — Dockerfile & Compose Static Lint

    1

    A compose file mounts `/var/run/docker.sock` into a service — which is root on the host.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Container Config Checker — Dockerfile & Compose Static Lint

    Container Config Checker — Dockerfile & Compose Static Lint

    Example session with this skill installed

    Check examples/Dockerfile.bad and list what is wrong, worst first.

    • Read your context and instructions
    • Compiled the container config checker

    Summary

    Container Config Checker found 10 problems in the bad Dockerfile: 3 high, 1 medium, 4 low, 2 info. The three high ones are the root user, a token set in an ENV, and curl piped into a shell.

    $ python3 scripts/container_config_checker.py examples/Dockerfile.bad
    [HIGH  ] runs-as-root  examples/Dockerfile.bad:1
             no USER instruction; the container runs as root
    [HIGH  ] secret-in-env  examples/Dockerfile.bad:3
             API_TOKEN is set to a literal value
    [HIGH  ] curl-pipe-shell  examples/Dockerfile.bad:11
             curl/wget piped into a shell
    [MEDIUM] base-image-latest  examples/Dockerfile.bad:1
             FROM node:latest
    [LOW   ] workdir-relative  examples/Dockerfile.bad:5
             WORKDIR app
    [LOW   ] apt-no-clean  examples/Dockerfile.bad:9
             apt-get install without rm -rf /var/lib/apt/lists/* leaves cache in the image
    [LOW   ] apt-no-no-install-recommends  examples/Dockerfile.bad:9
             apt-get install without --no-install-recommends pulls extra packages
    [LOW   ] multiple-cmd  examples/Dockerfile.bad:16
             2 CMD instructions found
    [INFO  ] no-healthcheck  examples/Dockerfile.bad:1
             no HEALTHCHECK; the orchestrator cannot tell if the app is alive
    [INFO  ] expose-privileged-port  examples/Dockerfile.bad:13
             EXPOSE 80
    
    10 finding(s): 3 high, 1 medium, 4 low, 2 info
    

    Next steps

    • Fix the three high findings first, then run the same command again.
    • Add --fail-on in CI so a build fails at the severity you choose.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A Dockerfile reads fine and still ships node:latest, runs as root, bakes a token into an ENV, and pipes curl into a shell. A compose file mounts /var/run/docker.sock into a service — which is root on the host. None of these are syntax errors; docker build runs them without complaint.

    Container Config Checker reads the file the way a careful reviewer would and names each problem, ranked most severe first. The same app done carefully (examples/Dockerfile.good) prints No findings. and exits 0.

    What it does

    • Checks 21 kinds of problem across Dockerfiles and compose files, each with a stable rule id and a severity (high / medium / low / info)
    • Reads the file, it does not grep it: line continuations (\) are joined, a # inside quotes is not a comment, and a FROM ... AS build stage name is remembered so a later FROM build is not mistaken for an unpinned image
    • Does not false-fire on placeholders: ENV API_KEY=${API_KEY} passes, ENV API_KEY=realvalue is flagged
    • Three outputs: human text, json, and SARIF 2.1.0 for a code-scanning dashboard
    • A --fail-on gate (default medium) so CI fails only at the level you choose, plus --dir, --list, --min-severity and --ignore

    Honest limits

    It reads the text of the file. It does not run the build and does not resolve what a base image contains. The compose reader handles the common shape, not every YAML feature. It is a reviewer's checklist caught by a script, not a sandbox.

    What is inside

    SKILL.md, README.md, LICENSE, scripts/container_config_checker.py, tests/test_checker.py (53 tests), and examples/ with Dockerfile.bad, Dockerfile.good, docker-compose.bad.yml and .dockerignore.

    Requirements and safety

    Python 3.8+, macOS or Linux, standard library only. The checker never builds or runs Docker, makes no network calls, and needs no credentials.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Reads file text only; no image building or layer resolution. Limited support for complex YAML anchors or deep nesting in compose files. Findings are indicators, not proven bugs.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Accounts
    X
    Software
    Python

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    Allowed Hosts

    x
    get.x.sh
    Listed10 days ago
    Updated7 days ago

    What's inside

    Frequently Asked Questions

    The checker scans for critical risks like hardcoded secrets, 'run as root' permissions, unpinned base images, and dangerous volume mounts (like the Docker socket) that could lead to host compromise.

    Python 3.8+ on macOS or Linux, standard library only. It is a command-line script, so any agent or CI job that can run a command and read the exit code can call it.

    Yes, you can use the '--fail-on' flag to set a severity threshold (e.g., Medium or High) that will trigger a non-zero exit code to block builds automatically.

    The single-file Python script (scripts/container_config_checker.py) with its 21 built-in rules, a known-bad and a known-good example, 53 tests, an instruction file for Claude Code (SKILL.md) and the README.

    No. It reads the text of the Dockerfile or compose file and the folder next to it. It never runs Docker, never builds or pulls an image, and makes no network calls.

    No. It checks the configuration text only, such as an unpinned base image, a root user, a secret in an ENV line or the Docker socket mounted into a service. It does not look inside a built image or check packages for known vulnerabilities.

    New in DevOps & Cloud