commands.sh

lxc-start

linux

Start a container.

More info →

Options (4)

-F, --foregroundboolean

Start a container in the foreground

Example: sudo lxc-start {{container_name}} {{[-F|--foreground]}}
-l, --logpriorityboolean

Write debug logs to a file

Example: sudo lxc-start {{container_name}} {{[-l|--logpriority]}} DEBUG {{[-o|--logfile]}} {{path/to/logfile}}
-o, --logfileboolean

Write debug logs to a file

Example: sudo lxc-start {{container_name}} {{[-l|--logpriority]}} DEBUG {{[-o|--logfile]}} {{path/to/logfile}}
--helpboolean

Display help

Example: lxc-start {{[-?|--help]}}

Examples (6)

Start the lxc service

Start a container

sudo lxc-start container_name

Start a container in the foreground

sudo lxc-start container_name [-F|--foreground]

Exit out of a foreground container (run this in a separate terminal)

sudo lxc-stop container_name

Write debug logs to a file

sudo lxc-start container_name [-l|--logpriority] DEBUG [-o|--logfile] path/to/logfile

Display help

lxc-start [-?|--help]
made by @shridhargupta | data from tldr-pages