liveBook · Manning

Storage driver

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

A storage driver is a software component that implements the filesystem and metadata operations used to store container images and container filesystems.

A storage driver implements the filesystem and metadata operations that store image layers and container filesystems. It uses Linux layered, copy-on-write filesystems to stack image layers and add a writable container layer. section 5.1.2 section 6.2.2

Podman storage-driver behavior includes:

  • overlay is the default and corresponds to overlay2 in Podman; rootful containers generally use native Linux overlay mounts. section 5.1.2 section 6.2.2
  • Rootless containers may use native overlay on sufficiently recent kernels or fuse-overlayfs through the mount_program option. section 5.1.2 section 6.2.2
  • vfs works broadly by copying complete layers, but consumes more disk space and is slower; overlay is the recommended general choice. section 5.1.2

Inspect the active driver

Run `podman info` and inspect `graphDriverName`, `graphOptions`, and `graphRoot`; a typical configuration reports `overlay` and a storage path such as `/var/mystorage`. section 5.1.1

Figure 5.1 Layered images stacked on one another are reassembled and mounted using container/storage.

Layered images are reassembled and mounted by container/storage. section 5.1.2

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

How deep it goes
Explains layered copy-on-write storage, driver selection, rootless fallbacks, and configuration options without detailing driver internals.
Examples
Uses stacked image layers, overlay and vfs comparisons, fuse-overlayfs, and podman info output showing the active driver and graphRoot.
What it assumes
Assumes Linux filesystem familiarity while defining layered filesystems, copy-on-write drivers, and rootless mounting behavior.
What you can do after
Operate/configure storage by inspecting podman info and selecting drivers or mount helpers through storage.conf.
How it connects
Connects storage drivers with layered filesystems, copy-on-write, overlayfs, fuse-overlayfs, rootless containers, and storage.conf.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more. The section links point to the parts of the book it draws on.