Quick Linux Tip #9:
Try: systemd-cgls --unit=docker.service
Info: systemd-cgls shows the cgroup tree with processes organized by their control groups. It is useful for understanding container isolation and process organization.
Examples:
- $ systemd-cgls --unit=user.slice
- $ systemd-cgtop # Real-time cgroup resource usage
- $ cat /proc/1234/cgroup # Show cgroups for a specific PID
Note: Use systemd-cgtop for real-time CPU and memory usage per cgroup. These tools are useful for container troubleshooting and understanding process isolation.
Leave a Reply