Tame the Log Flood
Cap a chatty container's logs before they eat the disk.
A advanced Docker challenge worth 20 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Last month a container's log file grew to 40GB and took the node down. chatty logs ten lines a second with no rotation.
Tasks: recreate chatty (same image + a looping echo command) with:
- log driver json-file
max-size1m,max-file3
Commands to learn: --log-driver, --log-opt, docker inspect (LogConfig)
Run check when done.