r/linuxadmin • u/TemaerRemington • Sep 18 '26
Docker or host
Hi, I need an advice. I need to make a database for a server and one of the ways to do that is via docker in docker compose. But I have a doubts about it's safety. We had a bunch of problems of them breaking on powerloss so I am not sure how it will react in a docker cluster.
P.S. Thank you all for your valuable insights and advices.
4
Upvotes
View all comments
Show parent comment
1
u/RetroGrid_io Sep 21 '26
Oddly, I'd never run a database on a VM, simply because it sucks out about 1/3 of your performance and throws it away.
The security footprint of a DB server should be pretty mild; only accessed by local hosts on a private network or 127.0.0.* so I'd go with host-level install pretty much every time. If it was a service offered to other clients I'd consider container installs (but still not VM installs)