3 ms·
I keep hearing that you shouldn't containerize databases. What is the motivation behind this?
by eggie5 10y ago
I keep hearing that you shouldn't containerize databases. What is the motivation behind this?
- swap32 10y agosee my comment above - https://news.ycombinator.com/item?id=12930829 https://news.ycombinator.com/item?id=12930829
- kossae 10y agoI 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.