解决Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory.
出现这个问题一般可能是要求的内存比较高,系统提供的可用内粗叫低,可以通过一下方式尝试再次启动
docker run -p 9200:9200 -e ES_JAVA_OPTS="-Xms512m -Xmx512m"
如果是docker compose可以配置环境变量
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"