AccessDeniedException: /usr/share/elasticsearch/data/nodes

This will work

Tested OK

Set Permission to
sudo mkdir -p $PWD/elasticsearch/data
sudo chmod 777 -R $PWD/elaticsearch/data

Then

docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300
-v $PWD/elasticsearch/data:/usr/share/elasticsearch/data
-e "discovery.type=single-node"
--name elasticsearch
docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4

(全文完)

(转载本站文章请注明作者和出处 AccessDeniedException: /usr/share/elasticsearch/data/nodes