i’m still trying to decide and am thinking about LXD and the advantages of going with LXD instead of LXC. host is Ubuntu Xenial 16.04.5 LTS and i will not be doing a major upgrade until 20.04 LTS (i always do a full fresh install fo a major upgrade).
i have this question about LXD that i am pondering and have been trying to find with Google. can i create a simple basic container on-the-fly with one command or maybe a small few commands if have a directory tree present (not currently in use by anything) that i want to be its rootfs? this container would be one-time use and any file changes should be left as changed in that file tree.
if not, what would be the absolute minimum configuration to do to make a simple container intended for short one-time use? examples?
i do this kind of thing with VMs often enough that i think doing the like with containers would be a plus with much less overhead each time.
this would be container that would probably have nothing else mapped and may well be just a slightly enhanced chroot (which i do many times to avoid the time to do a VM). i have scripted building a VM, so it is easy to do, but all the time to build the drive images is still quite a burden (typically over 4 minutes and sometimes over 12 minutes). i’m hoping containers can cut this to a few seconds.