Operations, Observability, and Maintenance
Once your containers are running, the work shifts to keeping them healthy, clean, and up to date. This module covers the "Day 2" tasks that prevent your Docker host from degrading over time.
The Maintenance Cycle
What You Will Learn
Maintenance Quick Reference
| Frequency | Task | Command |
|---|
| Daily | Check container health | docker compose ps |
| Weekly | Check disk usage | docker system df |
| Monthly | Prune unused objects | docker system prune |
| As needed | Update container images | docker compose pull && docker compose up -d |
| As needed | Upgrade Docker Engine | apt-get update && apt-get upgrade docker-ce |
Prerequisites
- Understand Docker Compose workflows (Module 7)