docker

Administers Docker Compose environments for development, test, and production multi-service stacks.

2|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/Gamaroff/agent-skills --skill docker-gamaroff
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/Gamaroff/agent-skills/tree/main/skills/docker
Command: npx skills add https://github.com/Gamaroff/agent-skills --skill docker-gamaroff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing multi-service Docker environments across development, test, and production involves repetitive commands, port conflicts, connection failures, and manual database operations that slow down daily work. ## Core Features & Use Cases - Environment Management: Start, stop, and monitor development, isolated test, and production stacks with PostgreSQL, Redis, Nginx, and a Prometheus/Grafana monitoring layer. - Database & Cache Operations: Run Prisma migrations, create and restore PostgreSQL backups, and manage Redis persistence and monitoring. - Troubleshooting Playbooks: Diagnose and fix port conflicts, database connection failures, image caching issues, disk space exhaustion, and slow container performance. - Use Case: When your PostgreSQL container refuses connections, follow the built-in diagnostic flow to check health status, verify DATABASE_URL, and recreate the container if needed. ## Quick Start Ask the agent to set up the Docker development environment and verify all services are healthy.

Frequently Asked Questions about docker

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

FAQPage Schema
How do I set up a Docker development environment with PostgreSQL and Redis?▼

Run the automated setup script (npm run docker:setup), which validates Docker, generates secrets, starts all containers, runs health checks, and executes Prisma migrations. Alternatively, start services manually with docker compose using the dev compose file and a project name flag.

How do I run tests against an isolated Docker database?▼

Use the test compose file, which starts PostgreSQL on port 5433 and Redis on port 6380 so it runs concurrently with development. The automated test script handles startup, schema reset, test execution, and cleanup via trap handlers.

Why does Docker fail with 'port is already allocated' errors?▼

Another process is bound to the same host port. Identify it with lsof -i on the conflicting port, kill the process, switch to the test environment's alternate ports, or change the port mapping in the compose file.

How do I backup and restore a PostgreSQL database running in Docker?▼

Create a backup with docker exec pg_dump piped to a timestamped SQL file, optionally compressed with gzip. Restore by piping the SQL file into docker exec psql; production stacks also run automated daily backups at 2 AM.

Why are my code changes not showing up in the Docker container?▼

In development, volume mounts provide hot-reload so code changes need no action. If dependencies changed, rebuild with docker compose up -d --build; for persistent caching issues, build with --no-cache or prune the system.

What should I do when Docker runs out of disk space?▼

Check usage with docker system df, then clean up with docker system prune, volume prune, or image prune. For recurring issues, increase the disk image size in Docker Desktop resource settings.