Hacker News new | past | comments | ask | show | jobs | submit login

Can someone enlighten me about the benefits of running a database inside a container?

I assume since containers ephemeral, data is saved somewhere on the host.




Sure. I think there are two big use cases.

The first would be learning/demo purposes where the data you store should essentially be ephemeral (imagine training sessions, interactive online tutorials, etc). In these cases it's more about experimenting with the query language and data model than anything else. RethinkDB has used Docker for this purpose to great success.

The other would involve mounting an external volume in order to persist the data and would allow you to isolate and limit the process which would otherwise monopolize the available resources of system (usually memory in MongoDB's case).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: