Re:“I just want to run a container”
by therein on Monday October 03, 2016 @04:49AM
(#12626073)
Things get complicated when one the applications decide to write to the shared data. Do you reflect the changes to the other container? How isolated do you wish to keep them? I mean at one point one should consider if they want to share these underlying resources, perhaps they should just be okay with running them as two processes.
[ Parent
| on HN ]
Re:“I just want to run a container”
by jacques_chester on Monday October 03, 2016 @06:55PM
(#12632039)
Typically the design pattern is that long-lived state is outside the container. So you'd have a volume that you attach.
Re:“I just want to run a container”
by dkarapetyan on Monday October 03, 2016 @01:44PM
(#12629601)
I don't think it's complicated. If you need a shared location so that different containers can write to then you should explicitly mark those locations and mount them inside the respective containers. This wouldn't be any different if you were sharing directories between processes.