Linux command
apptainer 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Download a container
apptainer pull [path/to/image.sif] docker://[image]:[tag]
Download a container
apptainer pull [path/to/image.sif] library://[user/collection/container]:[tag]
Build a container
apptainer build [path/to/image.sif] [path/to/definition.def]
Example
apptainer shell [path/to/image.sif]
Execute a command
apptainer exec [path/to/image.sif] [command]
Run the default runscript
apptainer run [path/to/image.sif]
Inspect
apptainer inspect [path/to/image.sif]
说明
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.
FAQ
What is the apptainer command used for?
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.
How do I run a basic apptainer example?
Run `apptainer pull [path/to/image.sif] docker://[image]:[tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more apptainer examples?
This page includes 7 examples for apptainer, plus related commands for nearby Linux tasks.