file permissions - Overriding default umask for docker daemon -


i'm trying mount folder on host machine inside container. in cases when host folder not exist, docker daemon automatically creates folder on host machine , assigns permissions based on default umask(which of root). result of this, not possible write folder within container due permission issues(script inside container runs unprivileged user). tried overriding permissions assigned setting umask in startup script docker believe being ignored. there way can override umask docker uses achieve this?

i created script problem. here is:

https://github.com/coppit/docker-inotify-command/blob/master/runas.sh

you call like:

runas.sh 99 100 0000 /mycommand.sh

99 user id number, , 100 group id number in host want emulate. 0000 umask.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -