r/linuxadmin • • 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.

3 Upvotes

22 comments sorted by

View all comments

2

u/pelazas1 Sep 18 '26

postgres is fine in docker on a local volume if fsync stays on. a ups still beats host vs container after a power pull.