PlantSingleCell

Using Apptainer on VT ARC HPC Systems

This guide helps you set up and run containers using Apptainer (formerly Singularity) on Virginia Tech’s ARC clusters via terminal or Open OnDemand.


Step 1: Load Apptainer

Apptainer is provided via the module system.

module load apptainer/1.4.0

Verify the installation:

apptainer --version

Expected output:

apptainer version 1.4.0

Step 2: Run a Simple Test

Run a quick test using a lightweight container:

apptainer run docker://alpine echo "Hello from inside a container!"

Expected output:

Hello from inside a container!

Step 3: Shell into a Container

You can get an interactive shell in a container like this:

apptainer shell docker://ubuntu:20.04

Try running some commands inside the container:

ls /
exit

Step 4 (Optional): Build a .sif Container Image

If building is allowed on your node:

apptainer build ubuntu_20.04.sif docker://ubuntu:20.04

Then run offline using:

apptainer run ubuntu_20.04.sif echo "Offline run successful"

Notes


TL;DR Quick Start

module load apptainer/1.4.0
apptainer run docker://alpine echo "Hello from container"

Resources