LinuxCommandLibrary

toolbox-run

Run commands in Toolbx containers

TLDR

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

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

CAVEATS

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

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard