`sh: error setting limit: Operation not permitted
[2018-09-13T20:29:34,587][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Out of memory
[2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out.
[2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
allow user 'elasticsearch' mlockall
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited`
`sh: error setting limit: Operation not permitted [2018-09-13T20:29:34,587][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Out of memory [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out. [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536 [2018-09-13T20:29:34,589][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
allow user 'elasticsearch' mlockall
I found resolution on docker repo, could you please implement in this image as well?