Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- "./data/data:/usr/share/elasticsearch/data"
- "./data/backup:/usr/share/elasticsearch/backup"
- "./data/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
image: elasticsearch:8.16.0
image: elasticsearch:8.16.1
ulimits:
memlock:
soft: -1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此代码存在一个关于内存限制的错误。
ulimits中,设置软值为-1意味着允许一切大小的最大范围。

修改后的正确格式:

ulimits:
   memlock:
      hard: unlimited
      soft: null

Expand Down