LXC vs Docker - What's the best for your website? (bobcares.com)
LXC containers can execute multiple applications and processes, while Docker containers are restricted to a single application or a service.
So LXC containers can be used to host virtual environments for private hosting, just like how VMs are used.
LXC containers are complete virtualization entities with its own file system. So any data updated in an LXC container, will always be retrievable.
In a Docker container, on the other hand, changes made to the data cannot persist beyond a restart.
As a result, Docker containers are often considered ‘stateless’ and cannot be edited once deployed. LXC, on the other hand, is stateful and stores data.
So, if you want a single container solution to manage data belonging to multiple applications and services, LXC is the ideal choice over Docker.
Designing a Docker system to support multiple applications require complex setup and coding, which is a waste of time, whereas LXC readily provides that feature.