Docker Community Forums

Share and learn in the Docker community.

How can create a shre path on docker and create access for other container oon that

Hi
How can create a folder in docker and share it for containers with specific policy for example container1 can read and write in that path and container2 just can read ?

BR
babak

A docker volume might be used by several containers at once. For container2, you can add :ro and the end of the volume mount configuration to have it read-only

Thanks
But if I use docker volume and create a path on docker, can all of my containers see this path ?

Sure. try it for yourself