container-ops-edho-ferdian

Designs Docker multi-stage builds and docker-compose setups, and debugs failing containers.

2|Updated Sep 6, 2026
One-click install
npx skills add https://github.com/edhoferdian/EEF --skill container-ops-edho-ferdian-edhoferdian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-ops-edho-ferdian
Source: https://github.com/edhoferdian/EEF/tree/main/.agents/skills/container-ops-edho-ferdian
Command: npx skills add https://github.com/edhoferdian/EEF --skill container-ops-edho-ferdian-edhoferdian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Docker and docker-compose correctly is error-prone: slow rebuilds from poor layer caching, oversized images, broken bind mounts, and containers that crash with no obvious cause. This Skill provides structured guidance for container setup, compose design, image-size reduction, and evidence-based debugging. ## Core Features & Use Cases - Multi-Stage Build Design: Structures Dockerfiles into named stages (deps, dev, build, production) with layer-cache ordering so dependency installs survive source-only changes. - Compose Service Design: Designs docker-compose stacks with service discovery, network segmentation, named/bind/anonymous volumes, health checks, and dev/prod override files. - Container Debugging: Walks through logs, docker inspect, exec shells, entrypoint overrides, and network DNS checks to diagnose crashing or misbehaving containers. - Use Case: A developer says "docker-compose untuk dev environment" and gets a full stack with a Postgres healthcheck, an anonymous volume protecting node_modules from the bind mount, and a production override file. ## Quick Start Ask the assistant to set up Docker and a docker-compose dev environment for your project, or to debug a container that keeps crashing.

Frequently Asked Questions about container-ops-edho-ferdian

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

FAQPage Schema
How do I speed up slow Docker builds?

Order Dockerfile instructions from least to most frequently changing: copy dependency manifests like package.json and package-lock.json first, run the install, then copy source code. This keeps the dependency-install layer cached when only source code changes.

How do I reduce Docker image size?

Use multi-stage builds so the final stage only copies compiled output and production dependencies, pruning devDependencies first. This typically removes more size than switching base images; prefer -slim over Alpine when native dependencies risk musl-libc incompatibility.

Why does my container crash immediately after starting?

Check docker compose logs for the last lines before exit, then run docker inspect to read State.ExitCode and State.Error. If the container exits too fast to exec into, override the entrypoint with docker compose run --rm --entrypoint sh to get a shell.

Why does my app break when I add a bind mount in docker-compose?

A bind mount like .:/app shadows the node_modules installed inside the image during build. Add an anonymous volume for /app/node_modules alongside the bind mount so container-installed dependencies are preserved.

Does this skill cover Docker security hardening?

No. Non-root users, capability drops, read-only filesystems, pinned digests, and secrets-in-layers are deliberately out of scope and handled by the security-review-edho-ferdian skill. This skill covers structure, caching, sizing, and debugging only.