apptainer
Build, run, and manage application containers for HPC
TLDR
SYNOPSIS
apptainer [global options] command [command options]
DESCRIPTION
Apptainer is a container platform designed for High Performance Computing (HPC), scientific computing, and AI/ML workloads. Unlike Docker, it runs containers without requiring root privileges and integrates seamlessly with existing HPC schedulers like Slurm, PBS, and SGE.
Containers are stored as single SIF (Singularity Image Format) files, making them highly portable. Apptainer supports pulling containers from Docker Hub, OCI registries, and the Sylabs Container Library.
Key features include GPU and MPI support, cryptographic container signing, overlay filesystems for persistent storage, and OCI runtime compatibility.
CONFIGURATION
/etc/apptainer/apptainer.conf
System-wide configuration controlling security options, bind paths, mount behavior, and resource limits.~/.apptainer/
Per-user directory for cached images, keys, and remote endpoint configurations.
SUBCOMMANDS
build
Build a container from a definition file or base imageexec
Execute a command within a containerrun
Run the container's default runscriptshell
Start an interactive shell in the containerpull
Download a container image from a registrypush
Upload a container to a registryinspect
Display container metadatainstance
Manage running container instancessign
Cryptographically sign a containerverify
Verify a container's cryptographic signature
CAVEATS
SIF files require significant disk space and are immutable once built. Modifications require rebuilding or using overlay filesystems. Some Docker containers may not work perfectly due to differences in how user namespaces and permissions are handled.
HISTORY
Apptainer originated as Singularity, created in 2015 by Gregory Kurtzer at Lawrence Berkeley National Laboratory. In 2021, the Linux Foundation adopted the project and rebranded it as Apptainer to ensure vendor-neutral governance. The project has become the de facto standard for container computing in HPC environments.

