← ClaudeAtlas

container-image-reviewlisted

Review a Dockerfile or container image for correctness, size, build speed, security and reproducibility - base image choice, layer caching, multi-stage builds, non-root users, pinned versions, secrets leaked into layers, signal handling and healthchecks. Use when reviewing a Dockerfile, when an image is unexpectedly large or slow to build, or before an image is used in production.
riteshsonawane1372/devops-skills · ★ 0 · DevOps & Infrastructure · score 66
Install: claude install-skill riteshsonawane1372/devops-skills
# Container Image Review Review an image for the four things that actually matter: does it work, how big is it, how fast does it build, and what does it expose. ## Purpose **Use this when:** - Reviewing a Dockerfile in a pull request. - An image is unexpectedly large, or builds slowly. - Preparing an image for production use. - A vulnerability scan reports findings and you need to know which matter. **Do not use this when:** - A container is failing at runtime — use `docker-debugging`. - The question is Kubernetes configuration around the image — use `kubernetes-production-readiness`. **What this skill assumes:** access to the Dockerfile and, ideally, the built image. Reviewing the Dockerfile alone misses what the base image contributes, which is often most of the size and most of the vulnerabilities. ## Operating Procedure 1. **Build it and measure.** Size, layer count, build time. Numbers before opinions. 2. **Review correctness first.** An image that is small and insecure is better than one that does not run. 3. **Check the base image.** It usually determines size, CVE count and libc compatibility. 4. **Check layer ordering** for cache efficiency — the difference between a 10-second and a 10-minute rebuild. 5. **Check what got in that should not**: secrets, build tools, caches, `.git`. 6. **Check the runtime posture**: user, signals, healthcheck, filesystem. 7. **Produce ranked findings** — correctness, then security, then size, then speed. Size and layer