liveBook · Manning

Mount namespace

A mount namespace is a Linux namespace that isolates the filesystem mount points visible to processes.

How 2 Manning books explain it

Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

A mount namespace is a Linux namespace that isolates the filesystem mount view available to a process group.

How it is used
Isolates container filesystem views and helps Podman restrict processes to designated images and volumes.
How deep it goes
Explains rootfs, bind mounts, pivot_root, and CAP_SYS_ADMIN, while deferring escape resistance to SELinux and runtime security.
Examples
Demonstrates namespace identifiers with /proc, mounts /tmp/testfile over /etc/shadow using podman unshare, and inspects rootless mount support.
What you can do after
Operate Podman’s rootless isolation demonstrations and evaluate how filesystem visibility, capabilities, and SELinux constrain container processes.

Read how Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more explains mount namespace →

Kubernetes in Action, Second Edition

A mount namespace is a Linux namespace that isolates the filesystem mount points visible to processes.

How it is used
Explains how containers receive separate filesystem views while selected files remain shareable through pod volumes.
How deep it goes
Defines filesystem isolation and contrasts separate mount namespaces with shared volumes, without detailing kernel implementation.
Examples
Uses containers in one pod with separate mount namespaces and a volume mounted into both.
What you can do after
Evaluate container filesystem visibility and recognize when a pod volume is needed for sharing files.

Read how Kubernetes in Action, Second Edition explains mount namespace →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.