Docker Community Forums

Share and learn in the Docker community.

Persistent permissions in container for bind volume?


(Jackyaz) #1

Hi all,

New to Docker! I have mapped/bind a volume from a Linux host to a container. The path being mapped happens to be a cifs share, if that is relevant. Permissions on the host are good, with 0775 on the files/directory.

In the container however, permissions are 0755. I have run chmod in the container which fixes this, and it seems to remain upon a container restart. Is there anything else I should be aware of that may break this, or am I binding volumes incorrectly?