Linux "lxc.exec" Command Line Options and Examples
Execute commands in containers

Description: Execute commands in containers The command is executed directly using exec, so there is no shell and shell patterns (variables, file redirects, ...


Usage:

lxc exec [:] [flags] [--]






Command Line Options:

-n
--disable-stdin[=false] Disable stdin (reads from /dev/null)
lxc.exec -n ...
--env
Environment variable to set (e.g. HOME=/home/foo)``
lxc.exec --env ...
-t
--force-interactive[=false] Force pseudo-terminal allocation
lxc.exec -t ...
-T
--force-noninteractive[=false] Disable pseudo-terminal allocation
lxc.exec -T ...
--mode="auto"
OPTIONS INHERITED FROM PARENT COMMANDS
lxc.exec --mode="auto" ...
--debug[
Show all debug messages
lxc.exec --debug[ ...
--force-local[
Force using the local unix socket
lxc.exec --force-local[ ...
-h
--help[=false] Print help
lxc.exec -h ...
-v
--verbose[=false] Show all information messages
lxc.exec -v ...
--version[
Print version number
lxc.exec --version[ ...