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

data and config mounts not working - container immediately terminates #58

Open
abell25 opened this issue Jun 2, 2016 · 0 comments
Open

Comments

@abell25
Copy link

abell25 commented Jun 2, 2016

Hi, I am on mac. The container immediately exits when I try to map to the data or config volumes as the instructions above suggest. I can map an arbitrary volume anywhere but these two locations. I tried copying the exact config files into my local config directory but it still fails. I also tried adding the -Des.config pointing to the location of the config file on the container but that fails too.

Fails

docker run --name es -d -p 9200:9200 -p 9300:9300 -v "$PWD"/config:/usr/share/elasticsearch/config elasticsearch

Fails

docker run --name es -d -p 9200:9200 -p 9300:9300 -v "$PWD"/data:/usr/share/elasticsearch/data elasticsearch

Runs but doesn't use correct config dir

docker run --name es -d -p 9200:9200 -p 9300:9300 -v "$PWD"/config:/config elasticsearch

I am not sure what the issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant