docker-expert

Evaluate Dockerfiles and Compose configurations for optimization and security hardening.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/hvngroup/directus_b2b_crm --skill docker-expert-hvngroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-expert
Source: https://github.com/hvngroup/directus_b2b_crm/tree/main/.agent/skills/docker-expert
Command: npx skills add https://github.com/hvngroup/directus_b2b_crm --skill docker-expert-hvngroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Docker containerization is complex and error-prone; this skill guides teams to optimize builds, harden security, and orchestrate reliable production deployments.

Core Features & Use Cases

  • Multi-stage builds for lean production images
  • Non-root runtime hardening and secure defaults
  • Docker Compose orchestration patterns for reliable deployments
  • Performance, networking, and security guidance for scalable services

Quick Start

Analyze your current Dockerfile and docker-compose.yml to identify high-impact optimizations and security improvements.

Frequently Asked Questions about docker-expert

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

FAQPage Schema
How do I optimize Dockerfiles for leaner production images?

Optimize Dockerfile structure by implementing multi-stage builds to isolate build dependencies from runtime environments, producing lean production images. Evaluate base image selection and restructure workflows to minimize final image size and attack surface.

What is the best way to harden Docker container security?

Harden Docker container security by enforcing non-root runtimes and applying secure defaults. Analyze Dockerfile security controls to prevent privilege escalation and ensure production-grade runtime behavior across development, staging, and production environments.

How do I orchestrate Docker Compose deployments across staging and production?

Orchestrate Docker Compose deployments by configuring reliable networking and service patterns for scalable environments. Validate Compose configurations to ensure consistent runtime behavior across development, staging, and production stages.

Does this Docker optimization approach work with existing docker-compose.yml files?

Yes, this approach analyzes your existing docker-compose.yml and Dockerfile structures to identify high-impact optimizations. It evaluates current configurations to guide multi-stage builds and security hardening without requiring a full rewrite.

Why does my Docker image size remain large after using multi-stage builds?

Docker image size remains large when base image selection is inefficient or multi-stage workflows are improperly structured. Evaluate the Dockerfile to ensure build dependencies are correctly isolated from the final runtime environment.