The issue is that you are not using the Docker image maintained by Elastic (docker.elastic.co/elasticsearch/elasticsearch:5.0.1) but rather an Elasticsearch image that is not maintained by Elastic hosted in the Docker Hub Registry.
it works fine here, but setting memory to the value you have 136870912 (130MB?) does not work and anyway would be too little for ES.
Please try instead setting the memory using the Docker recommendations for the units.
Additionally, note that the data dir for the image is /usr/share/elasticsearch/data as opposed to data; same holds for '/config, the correct conf dir is/usr/share/elasticsearch/config`. Please refer to the official documentation that describes the paths.
@cruizpollino I've managed to reproduce this if there are any spaces after RollingFile in the line
appender.rolling.type = RollingFile
Can you please confirm whether or not there are such spaces at the end of any of the lines in your log4j2.properties, and if the issue stops after removing all such spaces? Otherwise, I am not able to reproduce this with exactly the following content in log4j2.properties:
status = error
appender.rolling.type = RollingFile
appender.rolling.name = rolling
appender.rolling.fileName = ${sys:es.logs}.log
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %.10000m%n
appender.rolling.filePattern = ${sys:es.logs}-%d{yyyy-MM-dd}.log
appender.rolling.policies.type = Policies
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
appender.rolling.policies.time.interval = 1
appender.rolling.policies.time.modulate = true
rootLogger.level = info
rootLogger.appenderRef.rolling.ref = rolling
You were right there were a space after some of the lines and rolling.type was one of those.
I fixed those lines and now the error is not appearing anymore, now the docker execution commands simply fails with now error message apart from Corrupted prefix and end of stdout lines.
in order to troubleshoot the issue I set docker log-level to debug and run "tail -f /var/log/messages" at same time I run the docker command.
Attached images contain the output during that time period
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.