docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Change user permission of generated content

Open ebuildy opened this issue 9 years ago • 2 comments

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,

ebuildy avatar Jun 09 '16 07:06 ebuildy

Are you running docker-gen as root?

jwilder avatar Jun 09 '16 20:06 jwilder

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.

ebuildy avatar Jun 10 '16 09:06 ebuildy