Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

Check how a container's cgroup limits look on the host.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Verify limits are really applied.

What I'd do →

CID=$(docker inspect -f '{{.Id}}' web)
cat /sys/fs/cgroup/system.slice/docker-$CID.scope/memory.max
cat /sys/fs/cgroup/system.slice/docker-$CID.scope/cpu.max

(systemd cgroup driver, cgroup v2 paths).

Why → Proves the engine translated flags into kernel limits.

Interview tip → Use systemd-cgls or systemd-cgtop for a live view.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman