From dec408138d088aebf39cef690c94cef51486b3e5 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Sat, 14 Jul 2018 00:14:58 +0200 Subject: [PATCH] Add LXC documentation --- doc/ariane.md | 6 ++++++ doc/lxc.md | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 doc/lxc.md diff --git a/doc/ariane.md b/doc/ariane.md index 5122536..8e25175 100644 --- a/doc/ariane.md +++ b/doc/ariane.md @@ -129,3 +129,9 @@ mdadm --misc --detail /dev/md0 echo check > /sys/block/md0/md/sync_action watch -n 0.1 cat /proc/mdstat ``` +## Shutdown System +```shell +# stop all LXC containers +zfs_mount.sh unmount +halt -p +``` diff --git a/doc/lxc.md b/doc/lxc.md new file mode 100644 index 0000000..2a3f50d --- /dev/null +++ b/doc/lxc.md @@ -0,0 +1,11 @@ +# LXC container +## edit config +```shell +vi /var/lib/lxc/lxc-container-01/config +``` +## manage container +```shell +lxc-start -n lxc-container-01 +lxc-attach -n lxc-container-01 +lxc-stop -n lxc-container-01 +```