| name | reset-local-env |
| description | Reset the local Docker Compose development environment to a clean state (rebuild images, drop volumes). |
Reset Local Environment Skill (Docker Compose)
Reset a local Docker Compose environment to a clean state.
When to Use
Use this when:
- Need to reset local environment
- Need to clean Docker state
- Fixing dirty data issues
- Starting fresh with a clean development setup
- Encountering persistent errors after code changes
- Database schema changes require clean migration
- Switching between branches with incompatible changes
Quick Start
Run the reset script to get a clean local environment:
./scripts/reset-docker.sh
This script performs:
- Stop and remove all containers
- Remove project images (force rebuild)
- Remove volumes (clean data)
- Build all images from scratch
- Start all services
Assumptions / Conventions
This skill assumes the project was bootstrapped with project-bootstrap, which generates:
docker/docker-compose.yml
scripts/reset-docker.sh (calls Compose using docker/docker-compose.yml)
Manual Steps (if script unavailable)
cd /path/to/project
docker compose -f docker/docker-compose.yml down --remove-orphans
docker rmi <project>-core <project>-portal
docker volume ls
docker compose -f docker/docker-compose.yml build --no-cache
docker compose -f docker/docker-compose.yml up -d
sleep 30
docker compose -f docker/docker-compose.yml ps
Service Ports (Project-Specific)
Ports and credentials are project-specific. Use the generated docker/docker-compose.yml (and any .env) as the source of truth.
Verification Steps
After reset, verify services are healthy:
docker compose -f docker/docker-compose.yml ps
Common Issues
Containers won't start
docker compose -f docker/docker-compose.yml logs
docker logs <container-name>
Port conflicts
lsof -i :3000
lsof -i :8080
lsof -i :4000
Volume permission issues
docker volume ls
sudo docker volume rm <volume-name>