Container security
read_only, tmpfs, cap_drop, no-new-privileges and resource limits
read_only, tmpfs, cap_drop, no-new-privileges and resource limits
compose.yaml — cap_drop: [ALL], no-new-privileges, read_only with tmpfs, plus memory, CPU, and PID limits — close those gaps without rebuilding the image.uid 0 process inside a container runs as the real root on the host — if an attacker escapes through a kernel bug, they own the server. userns-remap shifts container UIDs into an unprivileged range, while Rootless Docker also moves the dockerd daemon itself into a regular user’s namespace.