simple linux container from scratch
$ make
or
$ gcc -o simple-lxcontainer_fs simple-lxcontainer_fs.c
$ sudo ./simple-lxcontainer_fs or sudo ./simple-lxcontainer_fs cmds
- https://man7.org/linux/man-pages/man2/clone.2.html
- https://man7.org/linux/man-pages/man2/mount.2.html
- https://man7.org/linux/man-pages/man2/chroot.2.html
- https://man7.org/linux/man-pages/man2/unshare.2.html