4 ms·
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
by therein 10y ago
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.
- dkarapetyan 10y agoI 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.
- jacques_chester 10y agoTypically the design pattern is that long-lived state is outside the container. So you'd have a volume that you attach.