| name | docker-manager |
| description | Manage Docker containers, images, volumes, and networks. Use when: user wants to list/start/stop/restart containers, check logs, pull images, clean up Docker resources, inspect container stats. NOT for: Kubernetes, building Dockerfiles from scratch. Use when this capability is needed. |
Docker Manager Skill
Manage Docker containers, images, and infrastructure directly from chat.
When to Use
✅ USE this skill when:
- "Show me running containers"
- "Restart the nginx container"
- "Check logs for my app"
- "How much memory is docker using?"
- "Remove unused images"
- "What ports are exposed?"
- "Pull the latest postgres image"
Core Commands
List & Status
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
docker system df
Container Control
docker start <name>
docker stop <name>
docker restart <name>
docker rm <name>
docker rm -f <name>
Logs
docker logs <name> --tail 100
docker logs <name> --tail 50 --follow
docker logs <name> --since 1h
Images
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
docker pull <image>:<tag>
docker rmi <image>
docker image prune -f
Cleanup
docker system prune -f
docker system prune -af
docker volume prune -f
Inspect
docker inspect <name>
docker exec -it <name> sh
docker exec <name> <command>
Networks
docker network ls
docker network inspect <name>
Response Format
When listing containers, always show: Name, Status, Image, Ports in a clean table.
When showing logs, show the last 50 lines by default unless asked for more.
When cleaning up, always show what was removed and how much space was freed.
Safety Rules
- NEVER remove volumes without explicit confirmation
- NEVER remove running containers unless asked to force-remove
- ALWAYS confirm before
system prune -af as it removes all unused images
- Show container names, not just IDs
Source: amirtechai/xclaw — distributed by TomeVault.