Not everything plays nice in Docker, and there are plenty of those services that also don’t need a full VM to operate. LXC is great for those edge cases. Otherwise I agree, a few VMs for various Docker stacks is the way to go.
Comment on Help Reviewing My Server Setup?
possiblylinux127@lemmy.zip 5 days ago
I personally would avoid LXC. That seems to be a hot take but in my experience it is better to run docker/podman in a few VMs.
lka1988@sh.itjust.works 5 days ago
AustralianSimon@lemmy.world 4 days ago
All the services OP has listed run great in docker, excluding Frigate (not tested personally).
lka1988@sh.itjust.works 4 days ago
True, I noticed that as well. Still, it’s worth moving bare-metal docker installations to VMs. Easier to manage IMO.
bostondrivingisworse@lemmy.world 5 days ago
…really? I run most of my services in an LXC, and have for a while without issue.
possiblylinux127@lemmy.zip 5 days ago
Maybe I’m doing it wrong then. I run LXC but has always been a much worse experience. Boot times are terrible and the controls that work for VMs don’t work as well for LXC. You also can live transfer which is problematic for me.
ikidd@lemmy.world 3 days ago
I think you’re doing it wrong. LXCs boot almost instantaneously on a hypervisor since they hijack the host kernel, I’d be surprised if my CTs take 5 seconds.
I would agree on the live migration issue but I guess you pick your services accordingly. I have a VM that runs docker and a LXC docker host, and I pick my containers for each accordingly.
possiblylinux127@lemmy.zip 3 days ago
How on earth are you getting 5 second boot time with LXC? My containers take around 10 minutes to boot while VMs take a few seconds. Also LXC networking seems to break randomly.