Case 03325
Docker container lifecycle management. Use when: user asks to list containers, start/stop containers, view logs, check stats, prune unused containers or images. Requires Docker CLI installed.From its SKILL.md
npx -y skills add knownasnaffy/prompthound --skill case_03325Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, 574 tokens by cl100k_base, as published. Nobody here has run it
Docker Manager Skill
Manage Docker containers, images, and system resources.
Triggers
- "docker containers", "list containers"
- "start container", "stop container"
- "docker logs", "container logs"
- "docker stats", "container stats"
- "docker prune", "cleanup containers"
- "docker images", "list images"
Commands
List Running Containers
docker ps
List All Containers (including stopped)
docker ps -a
Start a Container
docker start <container_id_or_name>
Stop a Container
docker stop <container_id_or_name>
Restart a Container
docker restart <container_id_or_name>
View Container Logs
# Tail last 100 lines
docker logs --tail 100 <container_id_or_name>
# Follow logs in real-time
docker logs -f <container_id_or_name>
Container Stats (CPU, Memory, Network)
# Stream stats for all running containers
docker stats
# Stats for specific container
docker stats <container_id_or_name>
# Non-streaming (one-time)
docker stats --no-stream <container_id_or_name>
List Docker Images
docker images
Prune Unused Containers
# Remove all stopped containers
docker container prune -f
Prune Unused Images
# Remove dangling images
docker image prune -f
# Remove all unused images
docker image prune -a -f
Docker System DF (Disk Usage)
docker system df
Bundled Scripts
docker-stats.sh
Script for formatted container stats output.
#!/bin/bash
# Docker container stats with formatted output
echo "Container Stats"
echo "==============="
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}"
Usage Examples
| Intent | Command |
|---|---|
| List running containers | docker ps |
| List all containers | docker ps -a |
| Start nginx container | docker start nginx |
| Stop nginx container | docker stop nginx |
| View webapp logs | docker logs --tail 50 webapp |
| Monitor stats | docker stats |
| List images | docker images |
| Cleanup unused containers | docker container prune -f |
| Cleanup unused images | docker image prune -a -f |
| Check disk usage | docker system df |
What ships with it: 2 files
1.1 KB alongside SKILL.md, 1 of them executable
scripts/
- docker-stats.shruns213 B
- README.md899 B