Diagnose and fix docker-local issues - container failures, port conflicts, connectivity problems
/plugin marketplace add mwguerra/claude-code-plugins/plugin install docker-local@mwguerra-marketplaceDiagnose and fix common docker-local issues.
FIRST, verify docker-local is installed:
which docker-local > /dev/null 2>&1 && echo "docker-local: OK" || echo "docker-local: NOT INSTALLED"
If NOT installed, ask user to install:
composer global require mwguerra/docker-local
export PATH="$HOME/.composer/vendor/bin:$PATH"
docker-local init
# Check status
docker-local status
# View logs
docker-local logs --tail=50
# Check system
docker system df
# Check
docker info
# Fix (Linux)
sudo systemctl start docker
# Fix (macOS)
open -a Docker
# Find what's using the port
lsof -i :3306
# Kill the process
kill $(lsof -t -i:3306)
# Or change port in ~/.config/docker-local/config.json
# Check logs
docker-local logs php
# Restart
docker-local restart
# Verify container running
docker-local status
# Check .env has correct host
# DB_HOST=mysql (not localhost)
# Setup DNS
sudo docker-local setup:dns
# Or add to hosts
sudo docker-local setup:hosts
# Regenerate certificates
docker-local init --certs
If all else fails:
# Stop everything
docker-local down
# Clean Docker
docker system prune -af
docker volume prune -f
# Reinitialize
docker-local init
docker-local up
# Full diagnostic
docker-local doctor
# View configuration
docker-local config
# Check specific service logs
docker-local logs mysql
docker-local logs php
docker-local logs traefik
$ARGUMENTS