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

Which cgroup version are you on and why does it matter?

IntermediateScenarioLimits, logging, health checks and restarts
Answer

Situation read → Some images or tools assume v1 paths.

What I'd do →

stat -fc %T /sys/fs/cgroup   # cgroup2fs => v2
docker info | grep -i cgroup

Update old monitoring agents and JVMs (JDK 15+/8u372+ understand v2).

Why → v2 is the unified hierarchy, default on modern distros, and gives better memory/IO accounting.

Interview tip → Old Java versions ignoring v2 limits was a notorious pitfall.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts