Skip to content
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

elastic search won't run with data volume mapped #370

Closed
dansantner opened this issue Oct 21, 2015 · 3 comments
Closed

elastic search won't run with data volume mapped #370

dansantner opened this issue Oct 21, 2015 · 3 comments

Comments

@dansantner
Copy link

I'm on a mac. I use the command
docker run -d -v "$PWD/esdata":/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 elasticsearch
to launch elastic but it immediately shuts down with this message

{1.7.3}: Initialization Failed ...

  • ElasticsearchIllegalStateException[Failed to created node environment]
    AccessDeniedException[/usr/share/elasticsearch/data/elasticsearch]

Any ideas on how to fix?

@yosifkit
Copy link
Member

This is a permissions issue since the mounted folder from your host is owned by uid/gid 1000:50 whereas the user in the container is elasticsearch (105:108). There is much discussion over on boot2docker/boot2docker#581.

@dansantner
Copy link
Author

thanks for responding @yosifkit.

@tianon tianon closed this as completed Jan 21, 2016
@endrezalan

This comment has been minimized.

@docker-library docker-library locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants