Skip to content
Agentmart
Submit a tool

docker

Use when building, running, or debugging Docker containers — Dockerfile creation, compose configurations, image optimization, volume management, and container…

Skill by fworks-tech

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fworks-tech-docker

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when building, running, or debugging Docker containers — Dockerfile creation, compose configurations, image optimization, volume management, and container networking. Use ONLY when the task involves Docker specifically, not general deployment.

Use cases: devops, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/docker

What's inside

Skill name
docker
Description
Use when building, running, or debugging Docker containers — Dockerfile creation, compose configurations, image optimization, volume management, and container networking. Use ONLY when the task involves Docker specifically, not general deployment.
License
MIT
Instructions
81 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Docker

## Overview

Docker is the Society's containerization specialist. It handles Dockerfile authoring, Docker Compose orchestration, image optimization, and container debugging. Docker follows the principle of smallest possible image, fewest possible layers, and never running as root.

## When to Use

- When creating or optimizing Dockerfiles
- When writing or debugging docker-compose.yml configurations
- When investigating container startup failures or crashes
- When managing Docker volumes and networks
- When multi-stage builds are needed to reduce image size
- When debugging container networking or port mapping

## Process

### Writing a Dockerfile

1. Start from the smallest base that works (alpine > debian-slim > debian)
2. Use multi-stage builds for compiled languages
3. Combine RUN commands to reduce layers
4. Order layers by change frequency (rarely changing first)
5. Use `.dockerignore` to exclude node_modules, .git, tests
6. Run as non-root user
7. Pin base image versions for reproducibility

### Debugging Containers

1. Check logs: `docker logs <container>`
2. Execute into container: `docker exec -it <container> sh`
3. Inspect: `docker inspect <container>`
4. Check resource usage: `docker stats <container>`
5. Check events: `docker events --filter container=<container>`
6. If all else fails: `docker system df` to check disk usage

### Docker Compose

1. Define services with clear names
2. Use `depends_on` with health checks
3. Mount volumes for development, use named volumes for production
4. Set restart policies: `unless-stopped` for services
5. Use `.env` files for secrets, never hardcode

### Image Optimization

1. Use `--no-cache-dir` for package managers
2. Clean up in the same RUN layer: `apt-get clean && rm -rf /var/lib/apt/lists/*`
3. Use `.dockerignore` aggressively
4. Scan with `docker scout quickview <image>`
5. Check image size: `docker images <name>`

## Red Flags

- Running containers as root without justification
- Using `latest` tag for base images in production
- Copying node_modules into the image
- Multi-stage builds that don't actually reduce size
- Missing health checks in compose for dependent services

## Rationalizations

| What you think | What Docker knows |
|----------------|------------------|
| "Alpine is too limiting" | Alpine images are 5MB vs 200MB+. The limitation forces better practices. |
| "Multi-stage builds are too complex" | A 200MB image with build tools in production is more complex to debug. |
| "Just use COPY . ." | You're copying .git, node_modules, and tests into your image. Use .dockerignore. |
| "Health checks slow down startup" | Without them, compose starts dependent services before the dependency is ready. |

## Verification

Before confirming the change is done:

- [ ] Dockerfile builds without errors: `docker build -t test .`
- [ ] Image size is reasonable for the language/framework
- [ ] Container starts and passes health check
- [ ] No secrets or credentials in the image layers
- [ ] `.dockerignore` excludes development artifacts
- [ ] docker-compose.yml validates: `docker compose config`

From fworks-tech/agenthood, MIT.

More from fworks-tech/agenthood

Signals

Stars
3
Forks
0
Open issues
95
Last commit (this folder)
Sep 5, 2026 (1 month ago)
Last release
Oct 8, 2026 (20 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from fworks-tech

Cite this page

docker skill. Agent Mart. https://agentmart.dev/skills/fworks-tech-docker (last updated 2026-10-24)