You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The squashfs case is not adequately documented at present, but sees limited use.
To accomplish image overlay, the image files are first mounted onto a session directory using kernel mounts. After this, an overlay mount is used to overlay onto the container rootfs.
In --oci mode we want to avoid privilege escalation from a non-root user, so we cannot perform kernel mounts of squashfs and extfs image files. However, FUSE solutions are available for squashfs and extfs:
In --oci mode, implement functionality that when a squashfs/extfs image file is presented to the --overlay option:
Will mount it to a staging directory, using squashfuse or fuse2fs.
Will overlay the mounted filesystem onto the container rootfs.
Allows r/w for extfs images, unless :ro is supplied as an option in the --overlay string.
Cleanly unmounts the overlay and underlying FUSE filesystems when the container exits.
At this stage we will assume that we are using a kernel new enough to support unprivileged overlays without fuse-overlayfs (which we will need to integrate later).
The text was updated successfully, but these errors were encountered:
In native mode, a bare image file can be used as the source for
--overlay
. The image file can be:The extfs case is documented at: https://docs.sylabs.io/guides/latest/user-guide/persistent_overlays.html#filesystem-image-overlay
The squashfs case is not adequately documented at present, but sees limited use.
To accomplish image overlay, the image files are first mounted onto a session directory using kernel mounts. After this, an overlay mount is used to overlay onto the container rootfs.
In
--oci
mode we want to avoid privilege escalation from a non-root user, so we cannot perform kernel mounts of squashfs and extfs image files. However, FUSE solutions are available for squashfs and extfs:In
--oci
mode, implement functionality that when a squashfs/extfs image file is presented to the--overlay
option::ro
is supplied as an option in the--overlay
string.At this stage we will assume that we are using a kernel new enough to support unprivileged overlays without fuse-overlayfs (which we will need to integrate later).
The text was updated successfully, but these errors were encountered: