Interview Prep/Docker/Resources, health checks, logging and restarts

Disk I/O wait high on the host and all containers slow.

AdvancedTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → One noisy container (logging, DB, backup), overlay copy-up on huge files, or small volume IOPS.

Diagnose →

iostat -x 1
sudo iotop -oPa
docker stats --no-stream
cat /sys/fs/cgroup/system.slice/docker-<id>.scope/io.stat

Fix → Throttle (--device-write-bps), move hot paths to dedicated volumes, increase IOPS.

Prevent → Per-container IO metrics and limits.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts