toolbox-run(1)
π toolbox-run(1) π
okay bestie, welcome to toolbox-run from the General Commands Manual β it's giving "run a thing inside a box" and honestly? iconic. sit down, grab a boba, we're doing this. π§β¨
πΈ NAME πΈ
toolbox-run β run a command in an existing Toolbx container π
β¨ SYNOPSIS β¨
toolbox run [--container NAME | -c NAME]
[--distro DISTRO | -d DISTRO]
[--preserve-fds N]
[--release RELEASE | -r RELEASE]
[COMMAND]
no cap, that's the whole vibe. π¦
π DESCRIPTION π
So basically: this runs a command inside an existing Toolbx container. And when we say existing, we mean it β that container should have already been made with the toolbox create command. no sneaky improvising, bestie. π
On Fedora, the default container is known as fedora-toolbox-N, where N is the release of the host. If you wanna pick a specific one, that's what the --container option is for. π
A Toolbx container is an OCI container. So like, toolbox run is analogous to a podman start followed by a podman exec. same energy, different font. π
π OPTIONS π
The following options are understood (and yes, we're listing every single one, because we don't skip):
--container NAME,-c NAMEβ run the command inside a Toolbx container with the given NAME. highkey useful when you've got multiple Toolbx containers created from the same image, or fully customized containers created from custom-built images. you contain, girl. π--distro DISTRO,-d DISTROβ run the command inside a Toolbx container for a different operating system DISTRO than the host. it has to be coupled with--releaseunless the selected DISTRO matches the host system. so like, read that twice. π«Ά--preserve-fds Nβ pass down to the command N additional file descriptors (on top of0,1,2, bestie β those come free). the total number of file descriptors will be3+N. math slay. π--release RELEASE,-r RELEASEβ run the command inside a Toolbx container for a different operating system RELEASE than the host. periodt. β
π₯ EXIT STATUS π₯
The exit code gives you the tea about why the command within the container failed to run, or why it exited. listen up:
1β there was an internal error in Toolbx. not her fault, fr fr.125β there was an internal error in Podman. also not her fault.126β the run command could not be invoked. π
$ toolbox run /etc; echo $?
/bin/sh: line 1: /etc: Is a directory
/bin/sh: line 1: exec: /etc: cannot execute: Is a directory
Error: failed to invoke command /etc in container fedora-toolbox-36
126
127β the run command cannot be found, or the working directory does not exist. it's giving "who?" π
$ toolbox run foo; echo $?
/bin/sh: line 1: exec: foo: not found
Error: command foo not found in container fedora-toolbox-36
127
- Exit code β the run command exit code. it just hands you back whatever the command said. no filter. π
$ toolbox run false; echo $?
1
π¦ EXAMPLES π¦
πΈ Run ls inside the default Toolbx container matching the host OS πΈ
$ toolbox run ls -la
π Run emacs inside the default Toolbx container for Fedora 36 π
$ toolbox run --distro fedora --release f36 emacs
β¨ Run uptime inside a Toolbx container with a custom name β¨
$ toolbox run --container foo uptime
π SEE ALSO π
toolbox(1), podman(1), podman-exec(1), podman-start(1) β go read your sisters, bestie, they're all icons too. π
and that's the whole page, no notes. π
anyway, this was toolbox-run(1) from the General Commands Manual β mwah, drink water, run your containers, and don't forget to toolbox create first. bye bestie, slay responsibly πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- arch rolling: toolbox 0.3-2 Β· Apache-2.0
- fedora 43: toolbox 0.3-1.fc43 Β· Apache-2.0
- fedora 44: toolbox 0.3-4.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms