Mounting one host directory/file to multiple containers

Hello,

I want to mount one host directory or file into multiple containers to share data between them (eg. HTTP server in one container and FTP server in another working with the same data). I know, that I can use --volumes-from or new volume API in 1.9, but for my purposes it is better to use it that way. My question is, if there are any potential problems when more containers are using one mounted directory or file in read write mode.

Thank you in advance.

Containers will not help solve or cause and different contention issues that you would normal find if it was all set up at host level.

1 Like