apptainer(1)

πŸ’… apptainer(1) β€” the manual, bestie edition πŸŽ€

okay so you opened the apptainer(1) man page and honestly? slay, you're in the right place. this is the apptainer man page, and we're about to go through the whole thing together, no skips, no gatekeeping πŸ’–


✨ NAME ✨

apptainer-test β€” run the user-defined tests that live inside a container. yes, containers can have feelings AND tests 🫢


🌸 SYNOPSIS 🌸

apptainer test [exec options...]

that's the whole vibe. apptainer test plus whatever exec options your heart desires ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

the test command lets you execute a testscript (if available) inside of a given container. like, if the container brought a testscript, this is how you run it πŸ’…

NOTE: for instances β€” if there's a daemon process running inside the container, then subsequent container commands will all run within the same namespaces. this means the --writable and --contain options will not be honored, because the namespaces have already been configured by the 'apptainer start' command. not me getting ignored by my own flags 😭

⭐ OPTIONS ⭐

  • --add-caps="" β€” a comma separated capability list to add πŸ‘‘
  • --allow-setuid[=false] β€” allow setuid binaries in container (root only) πŸ”₯
  • --app="" β€” set an application to run inside a container
  • --apply-cgroups="" β€” apply cgroups from file for container processes (root only)
  • --authfile="" β€” Docker-style authentication file to use for writing/reading OCI registry credentials πŸ”
  • -B, --bind=[] β€” a user-bind path specification. spec has the format src[:dest[:opts]], where src and dest are outside and inside paths. if dest is not given, it is set equal to src. mount options ('opts') may be specified as 'ro' (read-only) or 'rw' (read/write, which is the default). multiple bind paths can be given by a comma separated list πŸ’«
  • --blkio-weight=0 β€” Block IO relative weight in range 10-1000, 0 to disable
  • --blkio-weight-device=[] β€” Device specific block IO relative weight
  • --cdi-dirs=[] β€” comma-separated list of directories in which CDI should look for device definition JSON files. if omitted and not set in apptainer.conf, default will be: /etc/cdi,/var/run/cdi. not allowed in suid mode by non-root users πŸ™ˆ
  • -e, --cleanenv[=false] β€” clean environment before running container 🧼
  • --compat[=false] β€” apply settings for increased OCI/Docker compatibility. infers --containall, --no-init, --no-umask, --no-eval, --writable-tmpfs. it's giving "just make it work" energy ✨
  • -c, --contain[=false] β€” use minimal /dev and empty other directories (e.g. /tmp and $HOME) instead of sharing filesystems from your host
  • -C, --containall[=false] β€” contain not only file systems, but also PID, IPC, and environment. the full lockdown, no cap πŸ”’
  • --cpu-shares=-1 β€” CPU shares for container
  • --cpus="" β€” Number of CPUs available to container
  • --cpuset-cpus="" β€” List of host CPUs available to container
  • --cpuset-mems="" β€” List of host memory nodes available to container
  • --cwd="" β€” initial working directory for payload process inside the container (synonym for --pwd)
  • --device=[] β€” fully-qualified CDI device name(s). a fully-qualified CDI device name consists of a VENDOR, CLASS, and NAME, which are combined as follows: /= (e.g. vendor.com/device=mydevice). multiple fully-qualified CDI device names can be given as a comma separated list.
  • --disable-cache[=false] β€” do not use or create cache πŸ’€
  • --dns="" β€” list of DNS server separated by commas to add in resolv.conf
  • --docker-host="" β€” specify a custom Docker daemon host
  • --docker-login[=false] β€” login to a Docker Repository interactively
  • --drop-caps="" β€” a comma separated capability list to drop
  • --env=[] β€” pass environment variable to contained process
  • --env-file=[] β€” pass environment variables from file to contained process
  • -f, --fakeroot[=false] β€” run container with the appearance of running as root πŸ‘‘ (main character energy, but make it fake)
  • --fusemount=[] β€” a FUSE filesystem mount specification of the form ':' - where is `'container'` or `'host'`, specifying where the mount will be performed (`'container-daemon'` or `'host-daemon'` will run the FUSE process detached). is the path to the FUSE executable, plus options for the mount. `` is the location in the container to which the FUSE mount will be attached. e.g. 'container:sshfs 10.0.0.1:/ /sshfs'. implies --pid 🧚
  • -h, --help[=false] β€” help for test
  • -H, --home="/builddir" β€” a home directory specification. spec can either be a src path or src:dest pair. src is the source path of the home directory outside the container and dest overrides the home directory within the container 🏠
  • --hostname="" β€” set container hostname
  • --intel-hpu[=false] β€” enable Intel(R) Gaudi accelerator support while using a minimal /dev πŸ”₯
  • -i, --ipc[=false] β€” run container in a new IPC namespace
  • --keep-privs[=false] β€” let root user keep privileges in container (root only)
  • --memory="" β€” Memory limit in bytes
  • --memory-reservation="" β€” Memory soft limit in bytes
  • --memory-swap="" β€” Swap limit, use -1 for unlimited swap
  • --mount=[] β€” a mount specification e.g. 'type=bind,src=/opt,dst=/hostopt'.
  • -n, --net[=false] β€” run container in a new network namespace (sets up a bridge network interface by default) 🌐
  • --netns-path="" β€” join the network namespace at the specified path (as root, or if permitted in apptainer.conf)
  • --network="" β€” specify desired network type separated by commas, each network will bring up a dedicated interface inside container
  • --network-args=[] β€” specify network arguments to pass to CNI plugins
  • --no-env=[] β€” list of environment variables to block from import into container from host environment 🚫
  • --no-eval[=false] β€” do not shell evaluate env vars or OCI container CMD/ENTRYPOINT/ARGS
  • --no-home[=false] β€” do NOT mount users home directory if /home is not the current working directory
  • --no-https[=false] β€” use http instead of https for docker://, oras:// and library:///... URIs
  • --no-init[=false] β€” do NOT start shim process with --pid
  • --no-mount=[] β€” disable one or more 'mount xxx' options set in apptainer.conf and/or specify absolute destination path to disable a bind path entry, or 'bind-paths' to disable all bind path entries.
  • --no-pid[=false] β€” do not run container in a new PID namespace
  • --no-privs[=false] β€” drop all privileges from root user in container
  • --no-umask[=false] β€” do not propagate umask to the container, set default 0022 umask
  • --nv[=false] β€” enable Nvidia support (gamer girl GPU moment πŸ’œ)
  • --nvccli[=false] β€” use nvidia-container-cli for GPU setup (experimental) πŸ§ͺ
  • --oom-kill-disable[=false] β€” Disable OOM killer
  • -o, --overlay=[] β€” use an overlayFS image for persistent data storage or as read-only layer of container
  • --passphrase[=false] β€” prompt for an encryption passphrase πŸ”
  • --pem-path="" β€” enter an path to a PEM formatted RSA key for an encrypted container
  • -p, --pid[=false] β€” run container in a new PID namespace
  • --pids-limit=0 β€” Limit number of container PIDs, use -1 for unlimited
  • --rocm[=false] β€” enable experimental Rocm support
  • -S, --scratch=[] β€” include a scratch directory within the container that is linked to a temporary dir (use -W to force location)
  • --security=[] β€” enable security features (SELinux, Apparmor, Seccomp) πŸ›‘οΈ
  • --sharens[=false] β€” share the namespace and image with other containers launched from the same parent process
  • --unsquash[=false] β€” Convert SIF file to temporary sandbox before running
  • -u, --userns[=false] β€” run container in a new user namespace
  • --uts[=false] β€” run container in a new UTS namespace
  • -W, --workdir="" β€” working directory to be used for /tmp, /var/tmp and $HOME (if -c/--contain was also used)
  • -w, --writable[=false] β€” by default all Apptainer containers are available as read only. this option makes the file system accessible as read/write ✍️
  • --writable-tmpfs[=false] β€” makes the file system accessible as read-write with non persistent data (with overlay support only)

🌈 EXAMPLE 🌈

set the '%test' section with a definition file like so:



   %test
       echo "hello from test" "$@"

   $ apptainer test /tmp/debian.sif command
       hello from test command

for additional help, please visit our public documentation pages which are found at:

   https://apptainer.org/docs/

πŸ”₯ SEE ALSO πŸ”₯

  • apptainer(1) β€” the mothership, the blueprint, the icon πŸ‘‘

πŸŽ€ HISTORY πŸŽ€

22-Oct-2026 β€” Auto generated by spf13/cobra


okay bestie that's literally the whole page, you ate that πŸ’… and yeah β€” this apptainer(1) page was Auto generated by spf13/cobra, dated Oct 2026, manual apptainer(1), and it's iconic, periodt πŸ¦‹βœ¨πŸ“

πŸ“¦ where this page comes from
  • epel 9: apptainer 1.5.5-1.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-LBNL AND ISC AND MIT AND MPL-2.0 AND Unlicense
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms