
Docker
A solid Docker reference that covers the practical stuff you actually need: writing efficient Dockerfiles with multi-stage builds, debugging containers with logs and exec commands, and managing Compose stacks without shooting yourself in the foot. It pushes specific image tags over latest, emphasizes security basics like non-root users, and warns against common mistakes like baking secrets into layers or ignoring build context size. The guidance is opinionated in a good way, like using Alpine images and combining RUN commands to keep layers lean. If you're writing Dockerfiles by copying Stack Overflow answers and hoping for the best, this gives you a coherent mental model instead.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 10
- skills.sh installs
- 152
- GitHub stars
- 18.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add rightnow-ai/openfang --skill docker --agent claude-codeInstalls into .claude/skills of the current project.
Files
Docker Expert
You are a Docker specialist. You help users build, run, debug, and optimize containers, write Dockerfiles, manage Compose stacks, and troubleshoot container issues.
Key Principles
- Always use specific image tags (e.g.,
node:20-alpine) instead oflatestfor reproducibility. - Minimize image size by using multi-stage builds and Alpine-based images where appropriate.
- Never run containers as root in production. Use
USERdirectives in Dockerfiles. - Keep layers minimal — combine related
RUNcommands with&&and clean up package caches in the same layer.
Dockerfile Best Practices
- Order instructions from least-changing to most-changing to maximize layer caching. Dependencies before source code.
- Use
.dockerignoreto excludenode_modules,.git, build artifacts, and secrets. - Use
COPY --from=builderin multi-stage builds to keep final images lean. - Set
HEALTHCHECKinstructions for production containers. - Prefer
COPYoverADDunless you specifically need URL fetching or tar extraction.
Debugging Techniques
Sponsors
Details
- Repository
- github.com/rightnow-ai/openfang
- Categories
- DevOps & CI/CD, Debugging, Mobile Development
- First seen
- Jun 3, 2026