-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
"pelias elastic start" command is successful only for user 1001 #299
Comments
This certainly isn't true as the default UID on most Linux systems is 1000 and 501 on MacOS, both of which work. We've made a fairly decent attempt at detecting the correct permissions but it's impossible to cover every situation, you can always 777 the directories if you prefer. |
When you first run the If you subsequently change user to another user which doesn't have permissions to use that directory, then it will fail as expected. Use of sudo is explicitly discouraged and we detect the underlying user instead. If you're interested in reporting a bug which isn't covered by this behavior you'll need to include information about your system. |
I think that the current approach of trying to enforce the same UID on the host and in the container does not work in cases where the host and the container are using different user namespaces. For example, on my host machine i have created a user In my setup (using sysbox) all containers are created in the namespace
This means that UID In order to avoid such mismatch i go like this:
This way the container user (uid=1000) is able to write to the mounted directory. See also https://ilya-bystrov.github.io/posts/docker/docker-daemon-remapping=.html |
Please state in the README.md that it's not possible to run
pelias
commands unless you're a default user, i.e.1001
.Once I switched from user
1002
back to1001
below exception stopped occurring and I was able to runpelias elastic wait
successfully.The text was updated successfully, but these errors were encountered: