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--writableand--containoptions 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 formatsrc[:dest[:opts]], wheresrcanddestare outside and inside paths. ifdestis not given, it is set equal tosrc. 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 range10-1000,0to 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 inapptainer.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/devand empty other directories (e.g./tmpand$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 aVENDOR,CLASS, andNAME, 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 inresolv.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':'- whereis `'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 asrcpath orsrc:destpair.srcis the source path of the home directory outside the container anddestoverrides 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-1for 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 inapptainer.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 containerCMD/ENTRYPOINT/ARGS--no-home[=false]β do NOT mount users home directory if/homeis not the current working directory--no-https[=false]β use http instead of https fordocker://,oras://andlibrary:///...URIs--no-init[=false]β do NOT start shim process with--pid--no-mount=[]β disable one or more'mount xxx'options set inapptainer.confand/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 default0022umask--nv[=false]β enable Nvidia support (gamer girl GPU moment π)--nvccli[=false]β usenvidia-container-clifor 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-1for unlimited--rocm[=false]β enable experimental Rocm support-S,--scratch=[]β include a scratch directory within the container that is linked to a temporary dir (use-Wto 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/tmpand$HOME(if-c/--containwas 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