title: Overriding default umask for docker daemon
body: <p>I'm trying to mount a folder on host machine inside a container. In cases when the host folder does not exist, Docker daemon automatically creates the folder on host machine and assigns permissions based on default umask(which is that of root). As a result of this, it is not possible to write to the folder from within the container due to permission issues(script inside container runs as an unprivileged user). I tried overriding the permissions assigned by setting the umask in the startup script for Docker but I believe those are being ignored. Is there any way I can override the umask Docker uses to achieve this?</p>