Docker 容器与 Cgroup

docker 容器 ID 与 Cgroup 的关系:

On older systems with older versions of the LXC userland tools, the name of the cgroup is the name of the container. With more recent versions of the LXC tools, the cgroup is lxc/.

For Docker containers using cgroups, the container name is the full ID or long ID of the container.

https://docs.docker.com/config/containers/runmetrics/#find-the-cgroup-for-a-given-container