mount namespace
The namespace that gives a process its own list of mounted filesystems, and so its own view of the directory tree.
In more detail
Docker uses a mount namespace so the container sees its image layers as the root directory instead of the host filesystem. Volumes and bind mounts are extra mounts added inside that namespace.
Related terms
- namespace (Linux) — A Linux kernel feature that controls what a process can see, such as which other processes, network or host name.
- root filesystem — The top of the directory tree, written as a single slash, under which every other file and directory hangs.
- volume — Storage managed by Docker that lives outside any container, so data survives when the container is removed.
- bind mount — Mounting a folder from the host directly into a container, so both see the same files.
- pivot root — A Linux system call that swaps a process to a new root directory so it can no longer see the old one.
Taught in
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers