user namespace

The namespace that can map the root user inside a container to an unprivileged user on the host.

In more detail

Without a user namespace, root inside a container is the same user ID 0 as root on the host, only restricted by other features. With user namespace remapping, container root becomes an ordinary high-numbered user outside, so an escape lands with no special rights. Docker does not turn this on by default; rootless mode and userns-remap are the two ways to get it.

Related terms

Taught in

References