Add LXC documentation

This commit is contained in:
Daniel A. Maierhofer
2018-07-14 00:14:58 +02:00
parent d2423a60b1
commit dec408138d
2 changed files with 17 additions and 0 deletions

View File

@@ -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
```

11
doc/lxc.md Normal file
View File

@@ -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
```