DEBSPAWN-RUN(1)
π DEBSPAWN-RUN (1) π
okay bestie, welcome to debspawn-run β literally the manual page for the debspawn run subcommand. pull up a chair, grab a boba, we're doing this π§β¨
πΈ NAME πΈ
debspawn-run β run arbitrary commands in a debspawn container session. yes, arbitrary. the container is your canvas and you are the main character π¨π
β¨ SYNOPSIS β¨
debspawn run [-h|--help] [--variant] [-a|--arch] [--suite]
[--artifacts-out] [--build-dir] [--bind-build-dir]
[--cachekey] [--init-command] [-x|--external-command]
[--header] [--allow] [--boot] [--persistent] [--run-as]
{NAME} {COMMAND}
look at all those flags. it's giving "options menu at a fancy restaurant" and honestly? we ate π½οΈπ
π¦ DESCRIPTION π¦
so here's the tea: this subcommand lets you run any commands you want inside an ephemeral debspawn container, using the exact same environment that's normally used for building packages. same vibes, same setup, no cap π«Ά
debspawn run is explicitly designed to be used by other automation tools for custom applications β iykyk, it's the backstage pass for your scripts. and usually you'll want to use debspawn build instead to build Debian packages. run is for the custom stuff, build is for the package stuff. periodt π
π OPTIONS π
NAMEβ the name of the container image (usually a distribution suite name). it's basically the container's @ handle πCOMMANDβ the command to run. the one doing all the work, the icon, the moment β-h|--helpβ print brief help information about available commands. when you're lost, it's got you π₯--variantβ set the variant of the selected image, the one that was used for bootstrapping. flavouring your image, basically π-a|--archβ the architecture of the base image that should be selected. choose your fighter π₯--suiteβ explicitly set a suite name, instead of having it derived from the container name. no guessing games, you say it, it is π--artifacts-outβ directory on the host where artifacts can be stored. it gets mounted to/srv/artifactsin the guest. your lil souvenir shop for build outputs, adorable π--build-dirβ select a host directory that gets copied to/srv/build. photocopy energy, not the original π«§--bind-build-dirβ bindmount build directory instead of copying it. mounts read-only by default, but can mount as writable as well ifrwis passed as value. so careful bestie,rwmeans the container can write back into your actual directory. it's giving "sharing your notes app" π--cachekeyβ if set, use the specified cache-ID to store an initialized container image for faster initialization times. this may mean that the command passed in--init-commandis skipped if the cache already existed. lowkey a speedrun hack, but highkey it might ghost your init command β‘π--init-commandβ the command or command script used to set up the container. the pre-game ritual, the getting-ready montage πͺβ¨-x|--external-commandβ if set, the command script(s) will be copied from the host to the container and then executed. bring your own script, we'll carry it over the threshold π§³--headerβ name of the task that is run, will be printed as header. a little title card for your task, very cinematic π¬--allowβ list one or more additional permissions to grant the container. takes a comma-separated list of capability names. giving the container extra privileges, like handing your friend your phone unlocked π--bootβ boot container image. requires the image to contain an init system, so no init system = no boot, no exceptions π--persistentβ make changes done by the command or script persistent, writing them back into the container base image after the run completes. this is not a drill, it actually writes back into the base image β the effects are forever, like a text you can't unsend π--run-asβ run the command as root (privileged, default) or as the container's unprivilegedbuilderuser (unprivileged). pick your power level: god mode or civilian mode π«‘
π SEE ALSO π
debspawn-build(1). go read it, it's the sister page and she's iconic too π
π AUTHOR π
this manual page was written by Matthias Klumpp <mak@debian.org>. thank you for your service, legend π«Ά
π COPYRIGHT π
Copyright Β© 2018-2022 Matthias Klumpp
okay that's the whole page bestie, you made it to the end, so proud of you, go forth and debspawn run responsibly β¨
this has been debspawn-run(1) from Debspawn β mwah, take care of her π
π
π¦ where this page comes from
- ubuntu stonking: debspawn 0.6.5-1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms