toolbox-run

Run commands in Toolbx containers

TLDR

Run command in container
$ toolbox run -c [container_name] [command]
Run in distribution container
$ toolbox run -d [distribution] -r [release] [command]
Run emacs in Fedora container
$ toolbox run -d fedora -r f[version] emacs

SYNOPSIS

toolbox run [OPTIONS] COMMAND [ARGS...]

DESCRIPTION

toolbox run executes a command inside an existing Toolbx container without entering an interactive session. The command runs in the container environment and returns to the host when complete.This is useful for running individual commands or scripts in a container environment while staying on the host system.

PARAMETERS

-c, --container NAME

Specify container name
-d, --distro DISTRO
Specify distribution
-r, --release RELEASE
Specify distribution release version

INSTALL

sudo apt install podman-toolbox
sudo dnf install toolbox
sudo pacman -S toolbox
sudo zypper install toolbox
nix profile install nixpkgs#toolbox

CAVEATS

Container must exist and be running. Command must be available inside the container. Environment differs from interactive session in some cases.

SEE ALSO

toolbox(1), toolbox-enter(1), toolbox-create(1)