Elasticsearch官方的Docker Compose示例不起作用。

huangapple go评论58阅读模式
英文:

Elasticsearch official docker-compose example isn't working

问题

我尝试通过官方手册中的Docker Compose示例来安装Elasticsearch和Kibana,容器es01在日志中出现了以下问题:

2023-03-11 16:26:52 Created elasticsearch keystore in /usr/share/elasticsearch/config/elasticsearch.keystore
2023-03-11 16:26:53 /usr/local/bin/docker-entrypoint.sh: line 43:     8 Killed                  ( elasticsearch-keystore create )

我尝试按照手册中描述的方式手动创建elasticsearch.keystore,但之后出现崩溃,因为es01尝试设置已经设置的新bootstrap.password。无论如何,我想了解为什么示例的docker-compose.yml首次无法正常工作。我尝试过8.6.2和7.17两个版本,但结果都一样。

英文:

I tried to install Elasticsearch and Kibana through the docker-compose example from official manual
and container es01 got down with this thing in logs:

2023-03-11 16:26:52 Created elasticsearch keystore in /usr/share/elasticsearch/config/elasticsearch.keystore
2023-03-11 16:26:53 /usr/local/bin/docker-entrypoint.sh: line 43:     8 Killed                  ( elasticsearch-keystore create )

I have tried to create elasticsearch.keystore by myself like it was described in manual, but then it crashes because es01 tries to set new bootstrap.password that is already set.
Anyway, I want to understand, why the example docker-compose.yml is not working in first place.
I have tried both 8.6.2 and 7.17 and have got the same result.

答案1

得分: 1

问题出在MEM_LIMIT=32384032 .env参数上。它必须以字节为单位设置,而我设置成了KB,而且很长时间都没有注意到。32 Mb的内存不足以启动二进制文件。

英文:

The problem was in MEM_LIMIT=32384032 .env parameter. It must be set in bytes and I set it in KB and didn't notice for a long time. 32 Mb is insufficient memory to start the binary.

huangapple
  • 本文由 发表于 2023年3月12日 09:02:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/75710513.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定