Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would think if you depend on data stored in a container being persistent, it's an indication you really should be mounting a volume to the container and persisting the data there. Then container restarts won't matter. Best practices are generally for containers to be "cattle" instead of "pets", and data persistence usually has a different solution.

Regarding using a container for distributing static site generators, does anyone really do that? I think you may be building up a straw man here, I haven't seen anyone recommend this workflow. Could you elaborate on how this relates to the parent comment's mention of using less space when running many containers? What the parent comment mentions is, in fact, highly relevant to some of the main use-cases of containers, which is running many containers of the same service on one or many hosts. Space can be saved there with layer caching.



> Regarding using a container for distributing static site generators, does anyone really do that?

Is Sphinx a good enough example? <https://www.sphinx-doc.org/en/master/usage/installation.html...>

----

> Could you elaborate on how this relates to the parent comment's mention of using less space when running many containers?

Could you elaborate on how does "running many containers" relates to the topic of distributing and running *a single tool* (that was the context of the article)?


> Could you elaborate on how does "running many containers" relates to the topic of distributing and running a single tool (that was the context of the article)?

YOU may be distributing just a single tool but your users most likely use the computer for more than one tool. If they use many tools under docker, it is likely that many of those tools share the same underlying layers.




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

Search: