max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
<p>Using Ubuntu 16.10
Docker 1.12.3
Docker Composer 1.8
Elastic latest tag of official elastic docker image</p>

<p>docker-compose.yml</p>

<pre><code>version: '2'
services:
    elastic:
        image: elasticsearch
        environment:
            - ES_JAVA_OPTS=-Xmx2g -Xms2g
</code></pre>

<p>getting on logs</p>

<p>elastic_1 | ERROR: bootstrap checks failed
elastic_1 | max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
elastic_1 | [2016-11-18T17:48:17,058][INFO ][o.e.n.Node ] [HK_OIan] stopping ...</p>

<p>Any idea, thanks</p>