Closed maxbrunsfeld closed 5 years ago
Hi @maxbrunsfeld, indeed it's a good observation about problem with user rights. In fact I've done some article about that couple of weeks ago: https://trzeci.eu/fixing-permission-of-files-created-from-docker/ and most likely I will merge some patches for fixing permissions.
Please note that in your case, once you've done -u $(id -u):$(id -g)
and for some reason current user id is not 1000, then inside container there is no HOME
associated. To make your solution bullet proof, please add a hack : -e HOME=/tmp
which will set HOME
to /tmp
folder which is always writeable.
Hi @maxbrunsfeld, I'm doing some more ground refactoring of images in https://github.com/trzecieu/emscripten-docker/issues/41 and your suggestion will be addressed there. Thank you!
Hi, this is a very useful image. Thanks for creating it!
It worked for me on my Mac, but when I tried to run it on Travis CI, I got a permission error as soon as
emcc
tried to write to the file system:After reading about permissions issues with docker volumes, I replaced
--user emscripten
with--user $(id -u)
(specifying my user id on the host, rather than a username). This fixed the problem for me.I think this might be a better suggestion to make in the docs. What do you think?