rootless mode
Running the Docker daemon and containers as an ordinary user instead of root.
In more detail
In rootless mode a compromise of the daemon or a container escape lands as your own unprivileged user, not as root. It relies on user namespaces. The trade-offs are some networking and storage limitations, such as binding ports below 1024 needing extra setup.
Related terms
- user namespace — The namespace that can map the root user inside a container to an unprivileged user on the host.
- docker group — A Linux user group whose members may use Docker without sudo, which in practice gives them root on the host.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
- least privilege — Giving every program and person only the access they need, and nothing more.
Taught in
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Bind Mounts, Permissions And Backups — Docker Architecture & Production Containers