apptainer(1)
apptainer(1) π β instance start, bestie!
okay so you opened the apptainer manual page and weβre zooming straight in on apptainer instance start, the βmake my container run in the background with a nameβ command. Itβs giving background-process main character energy, fr fr. Hydrate and letβs go. π¦
NAME β¨
apptainer-instance-start β start a named instance of the given container image. literally the named-instance starter, periodt. π
SYNOPSIS π
apptainer instance start [start options...] [startscript args...]
DESCRIPTION πΈ
okay so the instance start command lets you create a new named instance from an existing container image, and that instance begins running in the background. If a startscript is defined in the container metadata, the commands in that script will be executed with the instance start command as well. You can optionally pass arguments to startscript. cute. π
apptainer instance start accepts these container formats:
.sifβ Singularity Image Format (SIF) β native to Singularity 3.0+ and all Apptainer versions. iconic. π.sqshβ SquashFS format β native to Singularity 2.4+ and < 3.0..imgβ ext3 format β native to Singularity versions < 2.4.directory/β sandbox format β a directory containing a valid root file system and optionally Apptainer meta-data.instance://β a local running instance of a container. See theinstancecommand group.library://β a SIF container hosted on a Library (no library enabled by default). π«Άdocker://β a Docker/OCI container hosted on Docker Hub or another OCI registry.shub://β a container hosted on Singularity Hub.oras://β a SIF container hosted on an OCI registry that supports the OCI Registry As Storage (ORAS) specification.ipfs://β a SIF image from an IPFS cluster, using a HTTP gateway.
OPTIONS π
not me about to list every single flag, but here we are: no skipping, no summarizing, every default stays. πβ¨
--add-caps=""β a comma separated capability list to add.--allow-setuid[=false]β allow setuid binaries in container (root only). root-only, so respect the crown π.--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.spechas 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 range 10-1000, 0 to disable.--blkio-weight-device=[]β Device specific block IO relative weight.--boot[=false]β execute/sbin/initto boot container (root only).-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.-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.--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.--disable-cache[=false]β do not use or create cache.--dmtcp-launch=""β checkpoint for dmtcp to save container process state to (experimental).--dmtcp-restart=""β checkpoint for dmtcp to use to restart container process (experimental).--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.--fusemount=[]β a FUSE filesystem mount specification of the form':'β where [blank in the source text] is'container'or'host', specifying where the mount will be performed ('container-daemon'or'host-daemon'will run the FUSE process detached). [blank in the source text] is the path to the FUSE executable, plus options for the mount. [blank in the source text] 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 start.-H,--home="/builddir"β a home directory specification.speccan 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 -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 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 container CMD/ENTRYPOINT/ARGS.--no-home[=false]β do NOT mount userβs 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-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.--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 a path to a PEM formatted RSA key for an encrypted container.--pid-file=""β write instance PID to the file with the given name.--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-Wto force location).--security=[]β enable security features (SELinux, Apparmor, Seccomp).--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 π
hereβs the vibe check in action, bestie:
$ apptainer instance start /tmp/my-sql.sif mysql
$ apptainer shell instance://mysql
Apptainer my-sql.sif> pwd
/home/mibauer/mysql
Apptainer my-sql.sif> ps
PID TTY TIME CMD
1 pts/0 00:00:00 appinit
2 pts/0 00:00:00 bash
3 pts/0 00:00:00 ps
Apptainer my-sql.sif>
$ apptainer instance stop /tmp/my-sql.sif mysql
Stopping /tmp/my-sql.sif mysql
SEE ALSO π«Ά
apptainer-instance(1)β go read the instance command group, iykyk.
HISTORY π
the lore is literally:
22-Oct-2026 Auto generated by spf13/cobra
π final sign-off tea: this is the apptainer(1) page, and the footer says Auto generated by spf13/cobra with Oct 2026; the history date is 22-Oct-2026. byeee bestie, slay responsibly! ππ
π¦ 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