简体   繁体   English

Docker运行的2.3.0如何设置Elasticsearch密码?

[英]How can I set a password for Elasticsearch 2.3.0 running in Docker?

I am trying to modify an existing installation of Elasticsearch (I believe it's version 2.3.0) running on Docker. Most of the information I'm finding online is for newer versions of Elasticsearch, but I'm hoping to avoid having to update the whole thing.我正在尝试修改在 Docker 上运行的 Elasticsearch 的现有安装(我相信它是版本 2.3.0)。我在网上找到的大部分信息都是针对 Elasticsearch 的较新版本,但我希望避免必须更新整件事情。

I need to restrict access to Elasticsearch for security reasons.出于安全原因,我需要限制对 Elasticsearch 的访问。 I'm trying to set a password, but so far I haven't had any luck.我正在尝试设置密码,但到目前为止我还没有成功。 Most of the tutorials I've found (apart from being about later version of Elasticsearch) talk about using X-Pack, but I don't think this is installed in the docker container.我发现的大多数教程(除了关于更高版本的 Elasticsearch 之外)都在谈论使用 X-Pack,但我认为它没有安装在 docker 容器中。 Is it necessary to install X-Pack, or is there another way?是否需要安装X-Pack,或者有其他方法吗?

2.3 is super old, there was no security back then and was only added in 5.6 2.3超老了,当时没有安全,5.6才加的

you will need to use something like nginx to manage, or ideally, upgrade to a supported version.您将需要使用 nginx 之类的东西来管理,或者理想情况下,升级到受支持的版本。 Security is free these days as well这些天安全也是免费的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行官方Elasticsearch docker镜像时设置默认的“弹性”用户密码? - How to set up default 'elastic' user password while running official Elasticsearch docker image? 如何在docker中修改elasticsearch的密码 - How to modify the password of elasticsearch in docker 在Spring Boot 2.3.0运行mvn spring-boot:build-image命令时如何设置JVM arguments生成docker镜像? - How to set JVM arguments when running mvn spring-boot:build-image command in Spring Boot 2.3.0 to generate a docker image? host.network模式下Docker运行的Elasticsearch如何设置端口号 - How to set port number for Elasticsearch running in Docker in host network mode 我可以为使用 docker compose 运行的 onedev 创建具有密码的用户吗? - Can i create a user with password for onedev running with docker compose? Docker上的Elastic 6:无法设置密码 - Elastic 6 on docker : can not set a password 如何使用 docker 秘密设置属性 spring.cloud.config.server.git.password - How can I set the property spring.cloud.config.server.git.password using docker secret docker Elasticsearch 5.6.10 如何删除用户名和密码 - docker Elasticsearch 5.6.10 how to remove username & password 使用Docker和PostgreSQL:如何在正式的postgresql映像中设置管理员密码? (但是请放心,不是生活环境变量) - Using Docker and PostgreSQL: How can I set administrator password in official postgresql image? (But securely, not a living environment variable) 如何将 docker 卷设置到另一台计算机的目录? 如何在 docker 容器中运行 jupyter 获取不同计算机中的数据? - How can I set docker volume to directory in another computer? How can I grab data in different computer for jupyter running in docker container?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM