Building container images, reducing image size, or optimizing container runtime behavior.
When NOT to use
For orchestration or multi-container deployment — use kubernetes-deployment skill instead.
Instructions
Review Dockerfile for layer inefficiency
Suggest multi-stage builds and caching strategies
Run security scans on images
Validate runtime configuration
Example
Reduce application image from 800MB to 120MB using distroless base and layer consolidation.
1---2name: docker-23description: Docker Optimization4---5# Docker Optimization67## When to activate89Building container images, reducing image size, or optimizing container runtime behavior.1011## When NOT to use1213For orchestration or multi-container deployment — use kubernetes-deployment skill instead.1415## Instructions16171. Review Dockerfile for layer inefficiency182. Suggest multi-stage builds and caching strategies193. Run security scans on images204. Validate runtime configuration2122## Example2324Reduce application image from 800MB to 120MB using distroless base and layer consolidation.
Run npx skillmds@latest add uitbreidenos/docker-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Docker Optimization It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
UitbreidenOS (@uitbreidenos) published this skill. Their other Agent Skills are listed on their SkillMD profile.