-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: EACCES: permission denied on running the command docker-compose up
#1
Comments
@parthsharma1996 That error is saying that the permissions on the data directory Which operating system are you on? If a unix/linux what is the FYI: given this is docker, we baked node/nvm into the image itself (to try and make things easier), so reinstalling it locally won't have any effect on the tutorial docker |
Yes. I am not able to figure out why that is happening, because(maybe I'm mistaken) it seems that I have the required permissions. Here is the output of
Thanks for letting me know. Didn't know that. |
@parthsharma1996 Hmm ok... (given that I get fuzzy on the specific rules for UID translation on docker) could you open the permissions wide-open on the data directory ( I suspect that the docker container is accessing your directory as a non-root user thats not yours (but there could be other problems as well, so this will help sort out which problem we are dealing with) Also could you confirm your specific OS (if linux which distro/version)? |
Running Here is the new output of
I am not sure I understand this. Can you please elaborate? Sorry I am inexperienced with docker. I am running Arch Linux.
P.S What is baffling is that I am able to run
They look the same as the permissions before in |
Docker is a kinda strange beast - Let me try explain, but let me know if the description doesn't make sense. Docker (AKA containers) are kinda-like mini virtual machines. This means that Docker images contain all their own libraries, and run processes under there own users/UIDs (the real way to say this is that containers virtualize user-space). They are different then normal virtual machines in that they share the kernel (so they are much smaller then real VMs) and that (if configured to) they can share the host filesystem (literally A side effect of this is that the user/UID that the process runs in the container - in the virtual environment - will be the UID it attempts to write onto the host filesystem via. (I just looked it up - in our container we have a "node-red" user that is UID 1001) So if you do a Docker definitely has some tools to clean up this UID mapping stuff, and on the Mac version of Docker it just magically maps everything to the user that ran docker. I'll have research those tools and see if we can make it easier for people running natively on linux That explain it? |
Thanks! That was a perfect explanation. It's rare to find people here who are willing to explain things in such a comprehensive manner. Interestingly enough the uid I see is 1000 not 1001. Here's the output
Running |
Hmm ok, I'm going to have to read some docs. I know uid 1000 is the default but I though the container UID took precedence. I’ll read a bit and update today. @parthsharma1996 given that your up and running (or let me know if you are aren't!) are you good with me closing this issue? |
@parthsharma1996 said:
I just realized when I re-read your You do have me a bit stumped with your comment of:
I'll have to dig through that to see if something forces the UID to remap. Anyway - Good with me closing the issue? |
I still don't understand why that is happening. Though I am able to run the tutorial now, and closing the issue should be okay. |
There's a UID mis-match between the user running in the container and your user id. You can see when I use this same container in my Rasa Tutorial repo I explicility set |
I am stuck in the
docker-compose up
command, which is throwing the following error:-I googled for this, and reinstalled node with nvm(which is the standard solution for the EACCES error. However, the error is still unresolved.
Can someone point me to a relevant direction on how to resolve this?
The text was updated successfully, but these errors were encountered: