Notes on lxc containers for workspace separation - lmmx/devnotes GitHub Wiki
To learn more about lxc containers I’m reading the 2013 blog post series on LXC 1.0 by Stéphane Graber, some notes on which are below in relation to my tentative idea of workspace process isolation
2/10
Discusses templates
- are there small templates as seen for Docker? Alpine Linux is mentioned, perhaps there has been a similar push towards smaller template sizes, and e.g. Docker Ubuntu is over a Gb as I recall
- see current upstream git linked in the post
- there are 2 “ubuntu” templates: One does a local bootstrap using “debootstrap” building the container from scratch whereas the cloud template downloads a pre-generated cloud image identical to what you get on EC2. The local mirror is much faster
Mentioned in 2/10 that you can’t detach from a container started without -d
to lxc-start
and so you need to shut it down to get your shell back.