Closed vjuneja closed 7 years ago
Hi, I have no idea what's going on. You could try
docker run --volume $PWD:/home/builder/stockfish.js --user $(id -u) -t -i niklasf/emscripten-for-stockfish /bin/bash
to launch a bash in the docker environment.
Intresting would then be to see how the permissions look like inside the container:
ls -l src
The problem was the --user setting that is specified in the readme.md. Based on docker documentation not specifying that runs it as "root" and does not give that error.
https://docs.docker.com/engine/reference/run/#user
I have filed https://github.com/niklasf/stockfish.js/pull/10 if you want to update the readme.
I will close this issue regardless.
I am curious if you could try the following, slightly changed command without root permissions:
docker run --user $(id -u):$(id -g) --volume $(pwd):/home/builder/stockfish.js:rw niklasf/emscripten-for-stockfish
It's probably best do remove and reclone the repository, to ensure files that are now already owned by root don't interfere.
I tried the new command but still got permission denied.
Thanks for testing.
cannot run with docker. Getting this permission error inside docker container.
Tried running assudo as well.