Linux command
apptainer-overlay 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Add a writable overlay
apptainer overlay create -s [size] [path/to/image.sif]
Example
apptainer overlay create -s [size] [path/to/overlay.img]
Example
apptainer overlay create -s [size] -S [path/to/overlay.img]
Example
apptainer overlay create -f -s [size] [path/to/overlay.img]
Example
apptainer overlay create --create-dir [path/to/directory] [path/to/overlay.img]
说明
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.
参数
- -s, --size _size_
- Size of the overlay image in MiB
- -S, --sparse
- Create a sparse file instead of allocating full disk space
- -f, --fakeroot
- Create overlay for use with fakeroot
- --create-dir _path_
- Create a specific directory in the overlay layout
FAQ
What is the apptainer-overlay command used for?
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.
How do I run a basic apptainer-overlay example?
Run `apptainer overlay create -s [size] [path/to/image.sif]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --size _size_ do in apptainer-overlay?
Size of the overlay image in MiB