Can you please provide an example to sharing a path using volumes_from
from container A to Container B, in addition how container B can access this path after sharing is done.
Thanks
Can you please provide an example to sharing a path using volumes_from
from container A to Container B, in addition how container B can access this path after sharing is done.
Thanks
As documentation said volumes if you are in
version 3
you can useThe top-level volumes
to define a named volume asdb-data
ee code below and you can reference it in every services something like this:volumes_from
allow you mount all data or volume from another service or container, you have to specify the access level how documentation said volumes from in your code you can use something like this:To code above
redis
define a volume services and then you can use in another container for exampleweb
withvolumes_from
look like web service use that volume service specify access level toread and write