5 ms·
The section on not running databases with Docker isn’t really fair. Of course you wouldn’t use something that crashed all the time to run your database server,
by minitech 10y ago
The section on not running databases with Docker isn’t really fair. Of course you wouldn’t use something that crashed all the time to run your database server, but Docker’s not designed to crash. It has volumes and you can do regular crash recovery with it. Crashing hard and taking the host’s data with it shouldn’t be a likely scenario and should be prepared for about the same as disk failure – have redundancy and make backups.
- SadWebDeveloper 10y agoFrom the article itself: > Containers are not meant to store data. Actually, they are meant by design to NOT store data. Any attempt to go against this philosophy is bound to disaster.
- minitech 10y agoYes, I am replying to that point. It’s incorrect, or at least misleading. Containers are meant to store any data that they have to externally; volumes are a facility to do this. Storing your data in an ephemeral container would absolutely be stupid, and the risk of unrecoverable corruption after a crash should be low if you’re not experiencing frequent kernel panics.