Docker · hands-on lab
Docker Lab 09: Limit Resources and Keep Containers Running
Set memory and CPU limits, restart policies and log rotation, and read docker stats and events.
- 35 minutesTime in the lab
- AdvancedLevel
- 5 tasksChecked automatically
- CertificateVerifiable link when you finish
The situation
One noisy container slowed the whole server last week. You set limits and make services restart on their own.
What you will do
- Guided exercise: Memory and CPU
- Guided exercise: Restart policy
- Lab: Log rotation
- OOMquestion
- unless-stoppedquestion
How it works
The lab opens in your browser: a real terminal or desktop, nothing to install. Work through the tasks, press Check after each one and the portal verifies your work. Stuck? Ask for a hint. Finish every task and you get a certificate page with its own verification link for LinkedIn or your CV.