From 9fbc74e1de4537ffd9f649257d64b997f789cd5a Mon Sep 17 00:00:00 2001 From: Damian Peterson Date: Tue, 16 May 2017 17:12:11 +1200 Subject: [PATCH] lxc: add page (#1371) --- pages/linux/lxc.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/lxc.md diff --git a/pages/linux/lxc.md b/pages/linux/lxc.md new file mode 100644 index 000000000..b6f571b90 --- /dev/null +++ b/pages/linux/lxc.md @@ -0,0 +1,32 @@ +# lxc + +> Manage Linux containers using the lxd REST API. +> Any container names or patterns can be prefixed with the name of a remote server. + +- List local containers matching a string. Omit the string to list all local containers: + +`lxc list {{match_string}}` + +- List images matching a string. Omit the string to list all images: + +`lxc image list [{{remote}}:]{{match_string}}` + +- Create a new container from an image: + +`lxc launch [{{remote}}:]{{image}} {{container}}` + +- Start a container: + +`lxc start [{{remote}}:]{{container}}` + +- Stop a container: + +`lxc stop [{{remote}}:]{{container}}` + +- Show detailed info about a container: + +`lxc info [{{remote}}:]{{container}}` + +- Take a snapshot of a container: + +`lxc snapshot [{{remote}}:]{{container}} {{snapshot}}`