Reclaim the Disk
Prune dead containers and dangling images without touching production.
A beginner Docker challenge worth 3 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Monitoring says this Docker host is running out of disk. Old deploys left stopped containers and dangling images everywhere.
Tasks:
- Inspect the damage:
docker ps -a,docker images -f dangling=true,docker system df - Remove all stopped containers and all dangling images
- The running container
appis production — it must survive
Commands to learn: docker container prune, docker image prune, docker system df
Run check when done.