ember-cli-docker-compose-template
ember-cli-docker-compose-template copied to clipboard
All generated files are created as root:root
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!
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
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
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