Control Linux Containers via Salt
depends: | lxc execution module |
---|
Returns the host for a container.
salt-run lxc.find_guest name
Freeze the named container
salt-run lxc.freeze name
Returns information about a container.
salt-run lxc.info name
Initialize a new container
salt-run lxc.init name host=minion_id [cpuset=cgroups_cpuset] \
[cpushare=cgroups_cpushare] [memory=cgroups_memory] \
[nic=nic_profile] [profile=lxc_profile] \
[nic_opts=nic_opts] [start=(true|false)] \
[seed=(true|false)] [install=(true|false)] \
[config=minion_config]
List defined containers (running, stopped, and frozen) for the named (or all) host(s).
salt-run lxc.list [host=minion_id]
Purge the named container and delete its minion key if present. WARNING: Destroys all data associated with the container.
salt-run lxc.purge name
Start the named container.
salt-run lxc.start name
Stop the named container.
salt-run lxc.stop name
Unfreeze the named container
salt-run lxc.unfreeze name
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.