lxc Command Examples

Manage Linux containers using the lxd REST API. Any container names or patterns can be prefixed with the name of a remote server. More information: https://manned.org/lxc.

lxc list {{match_string}}

lxc image list [{{remote}}:]{{match_string}}

lxc init [{{remote}}:]{{image}} {{container}}

lxc start [{{remote}}:]{{container}}

lxc stop [{{remote}}:]{{container}}

lxc info [{{remote}}:]{{container}}

lxc snapshot [{{remote}}:]{{container}} {{snapshot}}

lxc exec [{{remote}}:]{{container}} {{command}}