In Chapters 3 and 4, we addressed the topics of process isolation via Linux namespaces and resource control for individual processes via cgroups, respectively. Now we delve into the topic of layered file systems, which constitute the third building block of the Linux container, after namespaces and cgroups. This chapter describes how layered files systems enable file sharing on the host and how this helps in running multiple containers on the host.
Let’s start by discussing what a file system is.