-
Notifications
You must be signed in to change notification settings - Fork 344
Cannot change the permission of data folder when using boot2docker. #27
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
Comments
this issue is duplicate to #5 . |
I am having a similar issue:
Using Docker Toolbox with the If it's duplicate of #5, then what is the solution? The README says to run |
This is a recursive duplication error right now (not the elasticsearch error but the issue citation) |
Here's my workaround for OSX using Docker Toolbox: Change the UID of the fix-perm-osx.sh
Then execute the container and you should be able to successfully mount the data directory:
|
@david-mohr great, that works for me. One little adaption: I had to single-quote the
|
* Add Logstash to readme Add a Logstash section to the readme following the format of Kibana and Elasticsearch. * Remove open source mention
In
docker_entrypoint.sh
, this image will execchown -R elasticsearch:elasticsearch /usr/share/elasticsearch/data
to change the ownership of the mounted data folder.But when I use boot2docker to run this image, I got an error as following:
This is because boot2docker uses vboxfs to share the files between Host Mac and the VM that actually runs docker, and VM cannot change the permission or ownership of the folders on Host Mac.
One workaround is to create the data folder inside the VM, and mount that folder on the container.
I guess using data container might also works, but haven't tried it, and even if it works, it might still have some performance issues.
The text was updated successfully, but these errors were encountered: