docker

Create optimized and secure Dockerfiles and docker-compose configurations.

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/taewook486/real-estate-mcp --skill docker-taewook486
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/taewook486/real-estate-mcp/tree/main/.claude/skills/docker
Command: npx skills add https://github.com/taewook486/real-estate-mcp --skill docker-taewook486

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and optimization of Dockerfiles and docker-compose configurations, ensuring efficient, secure, and maintainable containerized applications.

Core Features & Use Cases

  • Dockerfile Optimization: Guides users in creating multi-stage builds, optimizing layers, and selecting minimal base images.
  • Security Hardening: Provides best practices for running containers as non-root users and managing secrets.
  • docker-compose Configuration: Offers patterns for resource limits, network isolation, and persistent storage.
  • Use Case: A developer needs to create a production-ready Dockerfile for a Node.js application, ensuring small image size and secure runtime configuration.

Quick Start

Use the docker skill to generate a multi-stage Dockerfile for a Python application.

Frequently Asked Questions about docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a multi-stage Dockerfile to optimize image size?

Use multi-stage builds in your Dockerfile by chaining multiple FROM statements to copy only compiled artifacts into a minimal base image. This discards build dependencies, optimizing layer size and ensuring reproducible builds.

What's the best way to secure a Docker container and run it as non-root?

Secure a Docker container by creating a non-root user in the Dockerfile and using the USER instruction to run the application. Combine this with proper secret management to harden the runtime environment against unauthorized access.

How do I configure docker-compose for resource limits and network isolation?

Configure docker-compose for resource limits and network isolation by defining networks and deploy.resources limits in your compose file. This enforces CPU and memory boundaries while separating services into isolated network segments.

Why does my Docker image have so many layers and large size?

Your Docker image has a large size due to unoptimized layers and heavy base images. Optimize layers by combining related RUN commands and selecting minimal base images to significantly reduce the final image footprint.

Can I use Docker health checks for environment configuration in production?

Yes, you can use Docker health checks to monitor environment configuration in production. Implement the HEALTHCHECK instruction in your Dockerfile to periodically verify application availability and ensure stable runtime configuration.

Does docker-compose work with persistent storage for containerized applications?

Yes, docker-compose works with persistent storage by defining volumes in the compose configuration. This maps host directories or named volumes to container paths, ensuring data persists across container restarts and updates.