Index

Module 13 · From ScratchContainer Runtime

Container 03: A Mount Namespace and pivot_root

The Shipping Container
The Shipping Container · Open board

The sealed box and what is packed inside it. This stage builds the packing: a folder of Alpine Linux that the program is told is the whole world.

Before you start. Container 02: UTS and PID Namespaces gave the box its own hostname and its own process numbers. This stage gives it its own files. A file system here means the tree of folders that starts at /, called the root. A mount is one file system attached at one place in that tree, and the list of all mounts is what mount prints. If mounts are new, Linux and the Shell: Processes, Files, Pipes, Permissions and Signals covers the shell side; the idea is that a disk, a USB stick and a network share are each attached (“mounted”) at some folder. You also need the Alpine folder from Build Your Own Container Runtime, unpacked at /tmp/rootfs.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Related paper

Review From Scratch →

Saved in this browser, and to your account when you sign in.