LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apptainer-pull

Download container images from remote registries.

TLDR

Pull from a registry, letting apptainer name the file
$ apptainer pull docker://[ubuntu]:[22.04]
copy
Pull and choose the output filename
$ apptainer pull [path/to/image.sif] docker://[ubuntu]:[22.04]
copy
Download into a particular directory
$ apptainer pull --dir [path/to/images] docker://[image]:[tag]
copy
Pull from the Container Library
$ apptainer pull library://[user/collection/container]:[tag]
copy
Pull from an OCI registry over ORAS
$ apptainer pull oras://[registry/namespace/image]:[tag]
copy
Pull a build for another architecture
$ apptainer pull --arch [arm64] [path/to/image.sif] library://[image]:[tag]
copy
Pull straight into a writable sandbox directory
$ apptainer pull --sandbox [path/to/sandbox] docker://[image]:[tag]
copy
Overwrite a file that is already there
$ apptainer pull --force [path/to/image.sif] docker://[image]:[tag]
copy
Log in interactively for a private registry
$ apptainer pull --docker-login docker://[private/image]:[tag]
copy
Use stored registry credentials instead
$ apptainer pull --authfile [path/to/auth.json] docker://[private/image]:[tag]
copy
Skip the cache entirely
$ apptainer pull --disable-cache [path/to/image.sif] docker://[image]:[tag]
copy
Make the result reproducible by reusing the source creation date
$ apptainer pull --reproducible [path/to/image.sif] docker://[image]:[tag]
copy

SYNOPSIS

apptainer pull [options] [output] URI

DESCRIPTION

apptainer pull downloads container images from remote registries and converts them to the SIF (Singularity Image Format). Supported sources include Docker Hub (docker://), the Sylabs Container Library (library://), OCI registries (oras://), Shub (shub://), and HTTP/HTTPS URLs.Downloaded images are cached locally to speed up subsequent operations. The resulting SIF file is portable and can be run on any system with Apptainer installed.

PARAMETERS

--arch architecture

Pull image for a specific CPU architecture.
--arch-variant variant
Pull image for a specific architecture variant (e.g., 6 for armv6).
-F, --force
Overwrite an existing local image file.
--sandbox
Create a writable directory instead of a SIF file.
--disable-cache
Do not use or update the image cache.
--no-https
Use HTTP instead of HTTPS for downloads.
--dir path
Download images to the specified directory.

CONFIGURATION

/etc/apptainer/apptainer.conf

Main configuration file controlling cache directories, registry defaults, and download behavior.

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

Large images may take significant time and bandwidth to download. Docker images are converted on-the-fly which can add overhead. Some Docker images may not convert perfectly due to differences in runtime expectations.

SEE ALSO

Copied to clipboard
Kai