apptainer overlay create

Create EXT3 writable overlay image

Synopsis

The overlay create command allows creating EXT3 writable overlay image either as a single EXT3 image or by adding it automatically to an existing SIF image.

apptainer overlay create <options> image

Examples

To create and add a writable overlay to an existing SIF image:
$ apptainer overlay create --size 1024 /tmp/image.sif

To create a single EXT3 writable overlay image:
$ apptainer overlay create --size 1024 /tmp/my_overlay.img

To create a sparse overlay when creating a new ext3 file system image:
$ apptainer overlay create --size 1024 --sparse /tmp/ext3_overlay.img

To create an EXT3 writable overlay image for use with --fakeroot actions:
$ apptainer overlay create --fakeroot --size 1024 /tmp/my_overlay.img

Options

    --create-dir strings   directory to create as part of the overlay layout
-f, --fakeroot             make overlay layout usable by actions run with --fakeroot
-h, --help                 help for create
-s, --size int             size of the EXT3 writable overlay in MiB (default 64)
-S, --sparse               create a sparse overlay

SEE ALSO

Auto generated by spf13/cobra on 7-Jun-2023