ElasticSearch with Docker语言 - 启用匿名访问



对于本地开发,我想使用 Docker 运行一个 ElasticSearch (5.5.2( 容器,但我不想处理身份验证。

我已经阅读了 https://www.elastic.co/guide/en/x-pack/5.5/anonymous-access.html,似乎该容器带有X-Pack,它增加了安全性(需要用户名和密码(。

以前我一直在运行:

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name es docker.elastic.co/elasticsearch/elasticsearch:5.5.

如何允许匿名访问?

环境变量xpack.security.enabled=false添加到docker run命令中。

完成命令:

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" --name es docker.elastic.co/elasticsearch/elasticsearch:5.5.2

参考: https://discuss.elastic.co/t/how-do-i-disable-x-pack-security-on-the-elasticsearch-5-2-2-docker-image/78183/4

最新更新