I downloaded using docker like this and the version I'm using is 5.6.8
docker run --name elasticsearch \
-p 9200:9200 \
-p 9300:9300 \
-v /opt/esdata:/usr/share/elasticsearch/data \
-e xpack.security.enabled="false" \
--restart always \
-d docker.elastic.co/elasticsearch/elasticsearch:5.6.8
source directory
/opt/esdata
after that Elasticsearch worked for me until I remove x-pack
after I removed x-pack security like this
docker exec -i -t elasticsearch bash
elasticsearch-plugin remove x-pack
exit
docker restart elasticsearch
the error when I getting from elasticsearch logs
Caused by: java.lang.IllegalArgumentException: unknown setting [xpack.security.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
I should remove x-pack and run elasticsearch without any issues because I don't need it anymore so please give me a solution .
Thanks .