I'm having trouble understanding how using volumes for storage will affect my disk space usage.
I have image A which is a base image and comes with a lot of utilities my apps need. I have apps B and C which are images built from base image A. They install different languages to run my two different apps. Image A is 300MB and B and C each are 300MB.
If I create 10 instances of app A and B how much disk space will be used?
Also supposing I'm mounting an NFS share to all the containers, any apps/processes within the containers only ever write app data, logs etc to the mounted nfs share, so it would seem not writes are taking place within the container. Mount point is /var/www/html what will my disk usage look like?
As I currently understand it in the first case my disk usage will be (300mb for the base image + 600mb for the two app images that build on it therefore 900mb. I'm assuming that the base image will be shared. If any containers are created from the app images B and C and they each write 100mb data before being cleared. Then my total disk usage will be 900mb + 100mb (net data written to disk) * no. of containers?
How do I understand this?