Basically I have a main directory and Books Directory (General file structure, there\'s more but these are the important pieces). So when I fire a request from main to booksServ
You can create one common datavolume
and attached your containers with the datavolume
Here is the step to create a datavolume,
Step 1 : docker volume create --name storageOne
You can give any name instead of storageOne
Step 2 : Now you need to attach that volume with the container using docker run -ti --name=myContainer -v storageOne:/storageOne ubuntu
command
Step 3 : Copy or create your required file in that datavolume
Step 4 : Now Create an another Container using docker run -ti --name=myContainer2 --volumes-from MyContainer ubuntu
command
Step 5 : Restart your myStorage
container
So whatever files are available in myStorage
will be shareable between attached container.
May be this will help you