docker-local — Claude Code skill: what it does, how to install
docker-local guides coding agents through custom Docker Compose environments without DDEV. Helps run containers, execute stack commands, and debug local setups.
no license 109 installs ★ 53 updated 2026-09-17
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a claude-codeWhat docker-local does
This skill gives coding assistants standard workflows for hand-crafted docker-compose.yml setups. The agent first inspects the repository for Compose manifests, .env configs, and Makefiles. It then selects commands to launch services in detached mode, rebuild images, or inspect logs.
The instructions include reference configurations for a web stack using Nginx, PHP-FPM, MariaDB, and Redis. Specific Drupal routines cover invoking Drush and Composer via docker compose exec, alongside SQL export and import tasks. For slower filesystems on macOS or Windows, it outlines using :cached mounts and named volumes for dependencies.
Careless cleanup will wipe project data. Running docker compose down -v permanently drops your persistent volumes. The guide also details troubleshooting port collisions with lsof and fixing web root ownership.
What it helps with
- inspect custom Docker Compose configurations and running services
- run Composer and Drush commands inside active containers
- import and dump SQL databases through Docker CLI
- fix file permissions and resolve port conflicts
Example prompts for the agent
- Check the Docker environment files and list all running containers
- Export the MariaDB database into dump.sql using docker compose
- Generate a Makefile with shortcuts for Drush, Composer, and container logs
How to install docker-local
1Skills CLI (Vercel)
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a claude-code2Manually: put the files in place
~/.claude/skills/docker-local/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/docker-local/
1Skills CLI (Vercel)
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a codex2Manually: put the files in place
.agents/skills/docker-local/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a cursor2Manually: put the files in place
.cursor/skills/docker-local/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install madsnorgaard/drupal-agent-resources .claude/skills/docker-local2Manually: put the files in place
.github/skills/docker-local/SKILL.md1Skills CLI (Vercel)
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a gemini-cli2Platform CLI
gemini skills install https://github.com/madsnorgaard/drupal-agent-resources --path .claude/skills/docker-localManually: put the files in place
.devin/skills/docker-local/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about docker-local
How do I install docker-local in Claude Code?
Run npx skills add madsnorgaard/drupal-agent-resources --skill docker-local -a claude-code. The skill file will be placed in ~/.claude/skills/docker-local/SKILL.md.
What kind of setups does docker-local target?
It targets custom Docker Compose stacks rather than managed environments like DDEV. The reference files cover Drupal workflows with Nginx, PHP 8.2-FPM, MariaDB, and Redis.
How does the skill handle macOS filesystem overhead?
It advises using the :cached flag on project volume mounts and putting vendor/ into a dedicated named volume.