Skip to main content
v2026.11,986 entries · CC-BY 4.0

Direct comparison

Apptainer vs Docker for HPC Research

Apptainer vs Docker compared: privilege model, HPC scheduler support, image format, GPU access, and which to use for reproducible research computing.

Written and maintained by CASRAI Editorial Board

Last updated

In summary

Apptainer and Docker are both container runtimes, but they solve different problems: Apptainer is built for rootless execution on shared, multi-tenant HPC clusters, while Docker is built around a root-owned daemon for single-user development and cloud/CI deployment. Most research workflows use both: Docker (or a compatible build tool) to build the image, Apptainer to run it on the cluster.

How do Apptainer and Docker compare side by side?

The table below compares Apptainer and Docker across 10 dimensions, from primary design target to best fit.

Side-by-side comparison

DimensionApptainerDocker
Primary design targetShared, multi-tenant HPC clustersSingle-user dev machines, cloud VMs, CI/CD
Privilege modelRootless by default — same user inside and outside the containerRoot-owned background daemon (dockerd); container processes commonly run as root
ArchitectureNo persistent daemon; runs as the invoking user's processClient-server: CLI talks to a long-running daemon
Image formatSIF (Singularity Image Format) — single immutable fileLayered image (union filesystem), multiple stored layers
GovernanceLinux Foundation project since Nov 2021, Technical Steering CommitteeDocker, Inc. (commercial); Moby is the open-source upstream
HPC scheduler integrationNative integration with Slurm, PBS, LSFNone native — pairs with Kubernetes/Swarm instead
GPU accessDirect passthrough (--nv for NVIDIA, --rocm for AMD)Via NVIDIA Container Toolkit / --gpus flag
Runs the other's images?Yes — pulls/converts Docker/OCI images directlyNo — cannot run a SIF file
Default filesystem behaviorRead-only by default; host paths bind-mounted inWritable container filesystem by default
Best fitReproducible pipelines on shared research computing clustersApp development, microservices, CI/CD, cloud deployment

Common questions

Common questions about Apptainer vs Docker

Is Apptainer the same thing as Singularity?

+

Effectively yes, with a governance change. Apptainer is the direct continuation of the Singularity project under Linux Foundation governance since November 2021, and remains command-line compatible. SingularityCE is Sylabs’ separate, continuing commercial fork.

Can I just use Docker on our university HPC cluster?

+

Almost certainly not — most shared academic clusters disallow Docker because its daemon requires root, which a multi-tenant cluster cannot safely grant every user. Apptainer exists specifically to avoid that requirement.

Can Apptainer run an existing Docker image without changes?

+

Yes, in most cases. Apptainer pulls Docker/OCI images directly (apptainer pull docker://...) and converts them to a SIF file automatically. Images that assume root-owned processes at runtime may need adjustment.

Which should a new lab standardize on?

+

Build with Docker (or a compatible tool) for the broad base-image ecosystem, and run on shared HPC compute with Apptainer to satisfy cluster security requirements — most research groups end up using both, at different stages.

Does switching from Docker to Apptainer change my results?

+

It shouldn't, if the container's software environment (dependencies, versions, OS base layer) is unchanged — both are running the same binaries in a namespaced environment. The National Academies' distinction between reproducibility (same data, same methods, consistent results) and replicability (new study, same question) is the relevant framing: preserving the exact container image, not the choice of runtime used to execute it, is what protects computational reproducibility.

Ask CASRAI · full access

Ask about Apptainer vs Docker for HPC Research

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →