apptainer-overlay
Create and manage writable overlay filesystems for containers.
TLDR
SYNOPSIS
apptainer overlay create [options] image
DESCRIPTION
apptainer overlay manages EXT3 writable overlay filesystems for Apptainer containers. Overlays allow persistent writes on top of immutable SIF container images without modifying the original image.Overlays can be embedded directly into a SIF file or created as standalone image files that are attached at runtime. This enables persistent storage of modifications, logs, and user data while maintaining container immutability.
PARAMETERS
-s, --size size
Size of the EXT3 writable overlay in MiB (default: 64).-S, --sparse
Create a sparse file instead of allocating full disk space.-f, --fakeroot
Make the overlay layout usable by actions run with --fakeroot.--create-dir path
Directory to create as part of the overlay layout (can be repeated).
CAVEATS
Overlays require filesystem support for loop devices and EXT3. Sparse overlays save disk space but may cause performance issues with some workloads. Overlay size cannot be easily changed after creation.
SEE ALSO
apptainer(1), apptainer-build(1), apptainer-run(1), apptainer-shell(1), apptainer-exec(1)
