liveBook · Manning

Containers/storage

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

Local container storage is the on-host storage managed by a container engine for container images and related container data.

containers/storage is Podman’s local, on-host storage layer for container images and container writable data. It stores pulled image layers, reassembles them with overlay mounts, and provides the filesystem presented inside a container. section 2.1.1 section 6.2.1

The storage workflow separates image content from container-specific changes:

  • Podman checks local storage before pulling an image; existing layers avoid another download. section 2.1.1 section 6.2.1
  • The containers/image library retrieves a manifest, configuration, and layers from a registry, while containers/storage assembles those layers locally. section 2.2.4 section 6.2.1
  • Storage creates an overlay mount for each layer and untars its contents into the corresponding storage layer. section 6.2.1
  • Creating a container adds a writable layer above the read-only image layers; rootful Podman normally uses native overlay mounts. section 6.2.2
  • Rootless operation uses native overlay where supported and fuse-overlayfs on older kernels; UID and GID mapping can reject unmapped archive ownership. section 6.2.2 section 6.2.1

Pulling an image into local storage

podman run -ti --rm registry.access.redhat.com/ubi8/httpd-24 bash pulls missing layers into local container storage, mounts them, and starts an interactive container. A later run can skip already-present layers; --rm removes the container’s storage after exit. section 2.1.1

Figure 6.5 Podman pulls an image off a container registry and stores it in the container storage.

Trace the path from a registry image through downloaded blobs and overlay layers into local container storage. section 6.2.1

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

How deep it goes
Explains layer downloads, extraction, overlay mounts, writable layers, and rootless ownership handling, but does not detail storage configuration commands.
Examples
Uses podman run, podman images, registry layer downloads, overlay mounts, and rootless image extraction as concrete demonstrations.
What it assumes
Assumes basic Podman command-line use and introduces image layers, container storage, overlay mounts, and user-namespace ownership from operational examples.
What you can do after
Operate/configure Podman storage by recognizing cached layers, writable overlays, image transports, and rootless ownership failures.
How it connects
Connects Podman with containers/image, container registries, overlayfs, fuse-overlayfs, user namespaces, and OCI image layouts.

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.