# Docker Review

> Audit Dockerfiles for security leaks, non-root execution, and image size optimizations.

Docker Review is a free AI agent skill on Agensi by Krimesh Shah, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Krimesh Shah](https://www.agensi.io/creators/krimesh-shah)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docker-review
- Tags: code-review, docker, devops, containers, security

## About this skill

Writing secure, production-ready Dockerfiles is a tedious manual process prone to leaking secrets or bloating image sizes. This skill audits your container configuration to ensure it follows industry standards for security and reliability.

### What it does
- **Security auditing** checks for non-root users and accidental secret exposure in image layers.
- **Image optimization** identifies missing multi-stage builds and leftover package caches.
- **Dependency pinning** flags unpinned base images or floating package versions.
- **Context filtering** verifies `.dockerignore` coverage for local artifacts like `.git` or secrets.
- **Runtime validation** reviews `ENTRYPOINT` signals, health checks, and filesystem privileges.

### How it works
1. Provide a `Dockerfile` or a path to a directory containing container configurations.
2. The skill analyzes the build instructions and runtime settings against reliability criteria.
3. It generates a report highlighting specific risks like root execution or privileged modes.
4. You receive actionable feedback to refactor the build process or minimize image footprints.

### Why this beats prompting it yourself
Generic prompts often miss the nuances of signal handling or layer caching. This skill uses a specific checklist to catch low-level issues like missing `.dockerignore` files or improper `CMD` formats that lead to zombie processes.

### Use cases
- Audit legacy Dockerfiles for security vulnerabilities before production deployment.
- Reduce CI/CD pipeline times by optimizing build layers and caching.
- Enforce non-root execution and minimal base images across microservices.
- Ensure containerized apps handle shutdown signals correctly via `ENTRYPOINT`.

### Known limitations
Does not perform active vulnerability scanning against CVE databases. Requires manual verification of specific package version security.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Docker Review skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does this skill help me solve in my container workflow?

This skill audits container configurations to detect security risks like root user execution and secret exposure, while also identifying ways to reduce image size and improve build reliability. It helps you catch low-level issues such as improper signal handling or missing build optimizations that are often missed during manual reviews.

### What files or accounts do I need to provide for the skill to work?

You only need to provide the Dockerfile you wish to audit or a path to the directory containing your container configurations. Your AI agent handles the analysis through this skill without requiring additional third-party accounts or external software.

### What kind of output can I expect after the analysis is complete?

The skill produces a detailed report highlighting specific risks such as privileged modes or unpinned base images. You receive actionable feedback and specific recommendations to refactor your build process or minimize your image footprint.

### Are there any security issues that this skill does not detect?

While the skill identifies configuration risks and dependency pinning issues, it does not perform active vulnerability scanning against CVE databases. You will still need to manually verify the security of specific package versions using a dedicated scanner.

### How should I ask my AI agent to start the review process?

Simply ask your AI agent to review your Dockerfile for security and reliability or request an audit of a specific directory containing your build configurations. You can also ask it to specifically check for image optimizations or non-root execution compliance.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
