logo

Container security fundamentals part 4: Cgroups

ID: c1b38fb7-57ec-51b2-b5a5-3a70c5bf9754

STIX ID: report--c1b38fb7-57ec-51b2-b5a5-3a70c5bf9754

Feed Name: Datadog Security Labs

Date Published: 2023-05-23

Date Updated: 2026-04-27

...
...

This post explains how Linux cgroups v2 control CPU, process counts, and device access to improve container security and stability, showing how to inspect cgroups via /proc, /sys, systemd-cgls, and lscgroup, and how to enforce limits using Docker flags (--cpus, --pids-limit, --device) to mitigate DoS scenarios (e.g., stress, fork bombs) and manage device access with eBPF-backed controls.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.