docker-expert

Write secure, optimized Dockerfiles and Compose stacks for containerized applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This agent removes guesswork and manual toil around containerisation by producing secure, small, and reproducible Dockerfiles and Compose stacks, and by diagnosing build and runtime failures so teams can ship containers reliably.

Core Features & Use Cases

  • Write production-grade Dockerfiles and multi-stage builds tailored to language runtimes and deployment targets.
  • Review & Harden existing container configurations for non-root execution, secret handling, and image size reduction.
  • Debug & Optimise build failures, caching strategy, health checks, and CI/CD container pipelines including BuildKit and multi-arch builds.
  • Compose & Orchestrate minimal Compose stacks and guidance for lightweight K8s manifests or Raspberry Pi/ARM builds.

Quick Start

Use the docker-expert agent to generate a secure, cache-optimized Dockerfile and a minimal docker-compose.yml for my Python web app.

Frequently Asked Questions about docker-expert

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

FAQPage Schema
How do I write a secure and optimized Dockerfile for my application?

Writing a secure Dockerfile involves using multi-stage builds to minimize image size, enforcing non-root execution, and structuring cache-friendly layers. This produces small, reproducible container images suitable for reliable deployments.

What is the best way to debug Docker build failures and optimize caching?

Debugging Docker build failures and optimizing caching involves analyzing layer order and leveraging BuildKit workflows. Restructuring instructions to maximize cache hits resolves build errors and significantly accelerates CI/CD container pipelines.

Can I build multi-arch Docker images for ARM and Raspberry Pi targets?

Yes, building multi-arch Docker images for ARM and Raspberry Pi targets is supported using BuildKit workflows. This capability creates container images that run consistently across different hardware architectures like ARM devices.

How do I create a minimal Docker Compose stack with health checks?

Creating a minimal Docker Compose stack with health checks requires defining services in docker-compose.yml and adding healthcheck directives. This orchestrates containerized applications while actively monitoring runtime status and dependencies.

Does Docker Compose support non-root execution and reproducible builds?

Docker Compose supports non-root execution and reproducible builds through user directive configuration and deterministic base image tagging. This ensures your orchestrated container stack runs securely and produces consistent deployment artifacts.