Container Audit

Audit local Docker images and running containers for hardening issues before deploy — privileged flags, root users, stale base images, missing resource limits. Use for pre-deploy container review.

olaservo Updated

File contents

Container Audit Skill

Inspect the local Docker environment for common container hardening problems so they're caught before they reach production.

Process

  1. Run the audit script to gather container and image data:
bash ${CLAUDE_SKILL_DIR}/scripts/audit-containers.sh
  1. Review the output for hardening issues
  2. Flag containers running privileged or as root
  3. Note stale base images and dangling layers

Output Format

Hardening Issues

Containers running privileged, as root, or without resource limits.

Image Hygiene

Stale base images and reclaimable dangling layers.

Summary

Overall posture (clean, warnings, or violations).

olaservo/dangerous-skills-mcp/tree/main/third_party/dangerous-skills/skills/container-audit commit d6031cb1f7

Frequently asked questions

npx skillmds@latest add olaservo/container-audit