Hacker News new | ask | show | jobs
by eggie5 3505 days ago
I keep hearing that you shouldn't containerize databases. What is the motivation behind this?
2 comments

I still don't understand this theory. As stated above, containers have the option to mount volumes on the host file system. Anything written while the container running is immediately persisted, and if the container dies you just re-mount the volume and continue as normal.

To harden this even further, you can run clustered DB nodes in Docker (+<your_preferred_orchestration_tool>) quite easily. So with persisted data, multiple node replication, and server snapshots I'd be interested to know as well.