ember-cli-docker-compose-template icon indicating copy to clipboard operation
ember-cli-docker-compose-template copied to clipboard

All generated files are created as root:root

Open anibalrivero opened this issue 5 years ago • 3 comments

Hi, I am trying to use this as a regular user with no sudo privileges (but docker group). I love the idea of this template and I am using docker-compose and the utility script. The problem I am having is that all generated files are owned by root:root and some of them have not writing permissions. I tried to specify a user in the docker-compose file but then I have problems with the tmp and node_modules volumes.

Thanks!

anibalrivero avatar Aug 27 '19 22:08 anibalrivero

Hi @anibalrivero , I run on the same issue, with wsl2 on windows 10 and the last docker desktop version that run on wsl2. Did you find a solution to create volume with another user permission than root ? Thanks

ncoquelet avatar Jun 22 '20 06:06 ncoquelet

Did you try to run the docker service as root?

after the compose is running you can do , something like this

docker-compose exec -u0 ember bash

Garibaldy avatar Sep 11 '20 14:09 Garibaldy

Did you find a solution to create volume with another user permission than root ? Thanks

Hi @ncoquelet , I did not find a real solution but I worked around the tmp problem modifying the docker-compose:

  tmpfs:
     /myapp/tmp:mode=777,gid=1000

anibalrivero avatar Sep 11 '20 21:09 anibalrivero