-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
host user running docker requires UID of 1000 for elasticsearch #295
Comments
actually all docker containers require a UID of 1000 it seems, not that it matters much |
Yeah for sure, permissions inside permissions, can be a nightmare. I thought I'd fixed this last year, we haven't had many reports recently. How it's supposed to work is that the |
can't see much in the pelias commands other than the deprecated
but how would that work even? it detects your UID but it can't take that for the docker-internal user, that would have to be decided in the image building when creating the user. we could change the permissions with the I think everyone got lucky so far, always having run this with the machine's first user:) |
I had a similar use case before and had to change our valhalla image to accommodate for that: definitely not arguing that's an option for your docker recipes, it's also a total nightmare. |
You can specify the docker user at runtime too |
huh.. let me research hahah 😅 |
ah right, totally forgot about that.. I guess that's what |
thanks!! didn't find that! yes, that should definitely do it. I'll just quietly close this issue and admit my idiot mistake of not using the provided docker-compose.yml.. |
Haha all good, permissions are the most common issue we get, I might spend some more time on the |
there's some bug reports around that already, e.g. #214 (AccessDenied, the container can't write into the
$DATA_DIR/elasticsearch
directory)the problem seems to me that the ES container internally has the
elasticsearch
user with UID/GID 1000 doing all the operations. while myDATA_DIR
is owned by the same user I run docker with and happens to have UID/GID 1003. so the container can't create any data/directories insideDATA_DIR
with its 775 permission bits.urgh, this is a mess with docker user management.. been there a few times.. essentially, IMO there's no fool-proof way that'll work in all situations without at least one root command. so maybe the way it works right now is the best we can do..
for now I'll make the
DATA_DIR
777. no idea what else to try (made my local docker user part of group 1000, but thenpelias elastic start
changes the permissions back to 1003/1003).The text was updated successfully, but these errors were encountered: