B
B
bozuriciyu2020-12-30 20:10:20
elasticsearch
bozuriciyu, 2020-12-30 20:10:20

Why is the volume not mounted to the elastic?

I run the docker image of elastica

docker run -p 9200:9200 -e "discovery.type=single-node" -v ~/docker/elasticsearch:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:7.5.1

Throws an error related to permissions."message": "uncaught exception in thread [main]
"stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];"

A similar command works with Monga, for example without problems. Why is the volume not mounted to the elastic and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2020-12-30
@bozuriciyu

https://github.com/elastic/elasticsearch-docker/is...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question