nginx-proxy / docker-gen

Generate files from docker container meta-data
MIT License
4.45k stars 604 forks source link

Change user permission of generated content #197

Open ebuildy opened 8 years ago

ebuildy commented 8 years ago

I know Docker loves root ;-) But, is it possible to configure the owner of generated template?

It's not a big issue because it's possible to change owner with notifycmd option, but I think this should be an important option to secure the usage.

Thanks you,

jwilder commented 8 years ago

Are you running docker-gen as root?

ebuildy commented 8 years ago

yes, I follow the example on README:

-v /var/run/docker.sock:/tmp/docker.sock:ro

Is owned by root, can as ReadOnly, cannot change ownership.