Add LXC documentation
This commit is contained in:
@@ -129,3 +129,9 @@ mdadm --misc --detail /dev/md0
|
|||||||
echo check > /sys/block/md0/md/sync_action
|
echo check > /sys/block/md0/md/sync_action
|
||||||
watch -n 0.1 cat /proc/mdstat
|
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
11
doc/lxc.md
Normal 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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user