by unixhero · 8y ago · 0 comments
I use both Docker and LXC but for very different use cases. I find both to be great tools when used to solve the problems they were intended for.
Use lxc in place of a VM, where you might want to login or even have others login. It has the same problem as a regular system, snowflakes. Changes can be made that might cause an application to behave differently if there are multiple deployments or you have to rebuild.
Docker is for having a consistent application environment so your app behaves exactly the same every time it's deployed.
I use lxc and did before docker. It took a while for me to accept docker. It takes understanding the difference.
In the real world, Docker's limited-liftime execution paradigm is the niche requirement. Everyone else just wanted lightweight VMs.
I run most of my home services in jails, but I am eager to rebuild them as Docker containers, because I’d rather have a single init on the host system run several containerized processes, then my current setup which is a tree of inits that makes monitoring more difficult than a single `sv status /service/*`.