apptainer Verified current stable Not installed? Containers

Apptainer / Build Container From Docker Hub

Build Container From Docker Hub

Apptainer command syntax to build container from docker hub. Copyable examples, output expectations, and common mistakes.

$
Terminal
apptainer build <path/to/image.sif> docker://<image>:<tag>

Command Breakdown

What each part is doing

apptainer
Base Command
The executable that performs this operation. Here it runs Apptainer before the shell applies any redirect operators.
<path/to/image.sif>
path to image.sif
The value supplied for path to image.sif.
<image>
image
The value supplied for image.
<tag>
tag
The value supplied for tag.

Alternative Approaches

Comparable commands in other tools

Alternative containers tools for the same job.