Rootless Containers
Cheat sheet · https://pcornel.dk/topic.php?topic=5043
Answer
Rootless containers run the container engine and containers as an ordinary user with user namespaces, so a container escape lands as an unprivileged user instead of root on the host.
Remember
- Rootless engines use user namespaces.
- An escape lands as an unprivileged user.
- Some features (low ports, some networking) need workarounds.
First checks
podman info | grep rootless— rootless Podmandocker context ls / dockerd-rootless-setuptool.sh check— rootless Dockerkubectl get pod <p> -o jsonpath='{..runAsNonRoot}'— non-root in Kubernetes
Verify in this order
unprivileged user → rootless runtime → container
Where it usually breaks
First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5043