Docker Community Forums

Share and learn in the Docker community.

Shared Volumes/Bind-Mounts among multiple containers (io-locks?)

I try to find information about multiple read accesses of the same resource among multiple containers. I use bind-mounts. (Debian)
Is this io-locked? Will it increase my io-waiting time? Are synchronization processes involved?
Makes it a difference If I mount the volume

  • All Containers: read only
  • All Containers: Read/Write
  • Some Containers: Read/Write, Some Containers: Read Only

Does it make sense to use something like (on Linux machines)

consistency=cached

or

state=cached+ro

And final question:
What is the best way of mounting the same resource for multiple containers? :slight_smile:
I want parallel reads.

Thanks a lot. :smiley: