apptainer sif add

Add data object


Add a data object to a SIF image.

apptainer sif add <sif_path> <object_path> [flags]


sif add image.sif recipe.def -datatype 1
sif add image.sif rootfs.squashfs --datatype 4 --parttype 1 --partfs 1 ----partarch 2
sif add image.sif signature.bin -datatype 5 --signentity 433FE984155206BD962725E20E8713472A879943 --signhash 1


    --alignment int       set alignment [default: 4096 with -datatype 4-Partition, 0 otherwise]
    --datatype int        the type of data to add
                          [NEEDED, no default]:
                            1-Deffile,   2-EnvVar,    3-Labels,
                            4-Partition, 5-Signature, 6-GenericJSON,
                            7-Generic,   8-CryptoMessage
    --filename string     set logical filename/handle [default: input filename]
    --groupid uint32      set groupid [default: 0]
-h, --help                help for add
    --link uint32         set link pointer [default: 0]
    --partarch int32      the main architecture used (with -datatype 4-Partition)
                          [NEEDED, no default]:
                            1-386,       2-amd64,     3-arm,
                            4-arm64,     5-ppc64,     6-ppc64le,
                            7-mips,      8-mipsle,    9-mips64,
                            10-mips64le, 11-s390x,    12-riscv64
    --partfs int32        the filesystem used (with -datatype 4-Partition)
                          [NEEDED, no default]:
                            1-Squash,    2-Ext3,      3-ImmuObj,
    --parttype int32      the type of partition (with -datatype 4-Partition)
                          [NEEDED, no default]:
                            1-System,    2-PrimSys,   3-Data,
    --signentity string   the entity that signs (with -datatype 5-Signature)
                          [NEEDED, no default]:
                            example: 433FE984155206BD962725E20E8713472A879943
    --signhash int32      the signature hash used (with -datatype 5-Signature)
                          [NEEDED, no default]:
                            1-SHA256,      2-SHA384,      3-SHA512,
                            4-BLAKE2s_256, 5-BLAKE2b_256


  • apptainer sif - Manipulate Singularity Image Format (SIF) images

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