Closed jayGG83 closed 1 year ago
Sorry you're dealing with this: docker file permission issues are frustrating! And thanks for the detailed error explanation.
The first thing to try is adding yourself to the docker group:
sudo usermod -aG docker $(whoami)
then logging out & in again for the changes to work.
Otherwise could you share the outputs of these commands to help get to the bottom of things:
ls -lh /home/jeremiah/mushroom/opentopodata/
id
Thanks for the reply. Currently my user is already in the docker group. Regarding the commands, here are the results:
-rw-rw---- 1 jeremiah jeremiah 1.1K May 9 09:49 LICENSE.md
-rw-rw---- 1 jeremiah jeremiah 1.6K May 9 09:49 Makefile
-rw-rw---- 1 jeremiah jeremiah 3.6K May 9 09:49 README.md
-rw-rw---- 1 jeremiah jeremiah 5 May 9 09:49 VERSION
drwxrwx--- 2 jeremiah jeremiah 4.0K May 9 09:49 data
drwxrwx--- 2 jeremiah jeremiah 4.0K May 9 10:06 docker
drwxrwx--- 7 jeremiah jeremiah 4.0K May 9 09:49 docs
-rw-rw---- 1 jeremiah jeremiah 757 May 9 09:49 example-config.yaml
-rw-rw---- 1 jeremiah jeremiah 1.6K May 9 09:49 mkdocs.yml
drwxrwx--- 2 jeremiah jeremiah 4.0K May 9 09:49 opentopodata
-rw-rw---- 1 jeremiah jeremiah 138 May 9 09:49 requirements.in
-rw-rw---- 1 jeremiah jeremiah 2.3K May 9 09:49 requirements.txt
drwxrwx--- 3 jeremiah jeremiah 4.0K May 9 09:49 tests
uid=1003(jeremiah) gid=1004(jeremiah) groups=1004(jeremiah),999(docker)
Hmm, there's a couple of things I can think of:
One is that you have -rw-rw----
(660) permissions on the files: because the docker container runs with a different uid you'll probably need -rw-r--r--
. You should be able to do this with chmod 644
.
You could also try adding --user 1003:1004
to the docker run
command.
Thanks. I'll try and let you know. Regards
Hello,
I tried to build/run the project in my aws ec2 server and got this error messages:
I tried various thing, but none of them worked:
Any ideas? Thanks in advace