[root@lisongyu ~]# docker run -p 9200:9200 hub.c.163.com/library/elasticsearch:5.5.2
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid1.log
-e "ES_JAVA_OPTS=-Xms512m -Xmx512m"
原文:https://www.cnblogs.com/lisongyu/p/11427013.html