LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

singularity

HPC container runtime without root privileges

TLDR

Run container
$ singularity run [container.sif]
copy
Execute command
$ singularity exec [container.sif] [command]
copy
Shell into container
$ singularity shell [container.sif]
copy
Build from definition
$ singularity build [output.sif] [definition.def]
copy
Pull from registry
$ singularity pull [docker://ubuntu:latest]
copy
Build sandbox
$ singularity build --sandbox [directory] [docker://ubuntu]
copy

SYNOPSIS

singularity command [options] container [args]

DESCRIPTION

Singularity (now Apptainer) is a container runtime designed for high-performance computing (HPC) environments where Docker's root-privilege model is not practical. Containers run as the invoking user without requiring a daemon or elevated privileges, making it safe for shared multi-tenant clusters.Unlike Docker, Singularity integrates tightly with the host system by default, sharing the user's home directory, network, and other filesystems. This makes it straightforward to use existing data and tools inside containers. Images are stored as single SIF files that are portable and can be built from Docker images, definition files, or pulled directly from registries.The tool enables reproducible science by packaging complete software environments into immutable containers that produce consistent results across different computing systems.

PARAMETERS

run

Run container.
exec
Execute command.
shell
Interactive shell.
build
Build container.
pull
Download image.
--sandbox
Writable directory.
--fakeroot
Rootless build.

INSTALL

sudo dnf install apptainer
copy
sudo pacman -S apptainer
copy
sudo apk add apptainer
copy
sudo zypper install apptainer
copy
brew install apptainer
copy
nix profile install nixpkgs#apptainer
copy

CAVEATS

Not Docker-compatible at runtime (no Docker socket, no daemon). Building SIF images traditionally requires root or user namespaces; use --fakeroot to build without root. Now maintained as two forks: Apptainer (Linux Foundation) and SingularityCE (Sylabs).

HISTORY

Singularity was created at Lawrence Berkeley Lab for running containers in HPC environments without privileged access.

SEE ALSO

docker(1), podman(1), apptainer(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid