docker-reset

Tear down and rebuild Docker stacks while reapplying Prisma state.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/ivegamsft/work-tracker --skill docker-reset-ivegamsft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-reset
Source: https://github.com/ivegamsft/work-tracker/tree/main/.squad/skills/docker-reset
Command: npx skills add https://github.com/ivegamsft/work-tracker --skill docker-reset-ivegamsft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive reset for Docker environments, addressing issues like wedged stacks, stale states, and corrupted Prisma states.

Core Features & Use Cases

  • Stack Reset: Completely tears down and rebuilds the Docker stack.
  • Prisma State Reapplication: Regenerates Prisma client, applies migrations, and seeds data.
  • Health Verification: Verifies the health of the PostgreSQL, API, and web services.
  • Use Case: Ideal for situations where the local Docker stack is behaving unpredictably or when a clean rebuild is necessary.

Quick Start

Run the docker-reset skill to reset your Docker environment to a known good state.

Frequently Asked Questions about docker-reset

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

FAQPage Schema
How do I reset a local Docker environment that is stuck in a bad state?

To reset a local Docker environment, you need to tear down and rebuild the stack completely, reapply database migrations, and verify service health to restore a known good state. This resolves wedged or stale stack issues.

What is the best way to fix a corrupted Prisma state in a local Docker stack?

Fixing a corrupted Prisma state requires a full Docker stack reset that regenerates the Prisma client, reapplies migrations, and seeds data. This coordinated teardown and rebuild eliminates stale database states.

How do I completely tear down and rebuild my Docker stack?

Completely tearing down and rebuilding a Docker stack involves executing a series of Docker commands to remove containers and volumes, then reconstructing the environment while reapplying Prisma state and verifying health.

Does resetting Docker environments also verify the health of PostgreSQL, API, and web services?

Yes, resetting Docker environments includes verifying the health of PostgreSQL, API, and web services. This ensures the rebuilt stack is fully operational and not returning to a wedged or corrupted state.

When should I use a nuclear reset for my Docker stack?

Use a nuclear reset for your Docker stack when the local environment is behaving unpredictably, experiencing wedged states, stale states, or corrupted Prisma states that standard restarts cannot resolve.

Can I use this Docker reset process to reapply migrations and seed data?

Yes, you can use this Docker reset process to reapply migrations and seed data. It coordinates Prisma operations by regenerating the client, applying migrations, and seeding data during the stack rebuild.