commands.sh

apptainer sign

linux

Add digital signatures to a SIF container image. See also: `apptainer-verify`.

More info →

Options (4)

-k, --keyidxboolean

Sign a container image using a specific PGP key index

Example: apptainer sign {{[-k|--keyidx]}} {{key_index}} {{path/to/image.sif}}
-g, --group-idboolean

Sign a specific object group within the image

Example: apptainer sign {{[-g|--group-id]}} {{group_id}} {{path/to/image.sif}}
-i, --sif-idboolean

Sign a specific object by ID within the image

Example: apptainer sign {{[-i|--sif-id]}} {{object_id}} {{path/to/image.sif}}
-h, --helpboolean

Display help

Example: apptainer sign {{[-h|--help]}}

Examples (6)

Sign a container image using the default PGP key

apptainer sign path/to/image.sif

Sign a container image using a specific private key file

apptainer sign --key path/to/private.pem path/to/image.sif

Sign a container image using a specific PGP key index

apptainer sign [-k|--keyidx] key_index path/to/image.sif

Sign a specific object group within the image

apptainer sign [-g|--group-id] group_id path/to/image.sif

Sign a specific object by ID within the image

apptainer sign [-i|--sif-id] object_id path/to/image.sif

Display help

apptainer sign [-h|--help]
made by @shridhargupta | data from tldr-pages