← 返回命令列表

Linux command

toolbox-run 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run

toolbox run -c [container_name] [command]

Example

toolbox run -d [distribution] -r [release] [command]

Example

toolbox run -d fedora -r f[version] emacs

说明

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.

参数

-c, --container _NAME_
Specify container name
-d, --distro _DISTRO_
Specify distribution
-r, --release _RELEASE_
Specify distribution release version

FAQ

What is the toolbox-run command used for?

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.

How do I run a basic toolbox-run example?

Run `toolbox run -c [container_name] [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --container _NAME_ do in toolbox-run?

Specify container name